Method: Metasploit::Credential::Core#origin_service_host_id
- Defined in:
- app/models/metasploit/credential/core.rb
#origin_service_host_id(host_id) ⇒ ActiveRecord::Relation
Finds Cores that have an origin_type of Service and are attached to the given host
150 151 152 153 154 |
# File 'app/models/metasploit/credential/core.rb', line 150 scope :origin_service_host_id, lambda { |host_id| core_table = Metasploit::Credential::Core.arel_table host_table = Mdm::Host.arel_table services_hosts.select(core_table[:id]).where(host_table[:id].eq(host_id)) } |