Class: Metasploit::Credential::Origin::Session
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Metasploit::Credential::Origin::Session
- Defined in:
- app/models/metasploit/credential/origin/session.rb
Overview
Origin of ‘Metasploit::Credential::Core`s that were gathered by a post module used on a #session. Contrast with a Service, which is for auxiliary or exploit modules that gather credentials directly from a service without the need for a separate post module or even a session.
Instance Attribute Summary collapse
-
#cores ⇒ ActiveRecord::Relation<Metasploit::Credential::Core>
Core credentials imported from #session using the post module.
-
#post_reference_name ⇒ String
The reference name of a ‘Msf::Post` module.
-
#session ⇒ Mdm::Session
The session on which the post module was run to gather the core credentials.
Instance Attribute Details
#cores ⇒ ActiveRecord::Relation<Metasploit::Credential::Core>
Core credentials imported from #session using the post module.
16 17 18 19 |
# File 'app/models/metasploit/credential/origin/session.rb', line 16 has_many :cores, as: :origin, class_name: 'Metasploit::Credential::Core', dependent: :destroy |
#post_reference_name ⇒ String
The reference name of a ‘Msf::Post` module.
|
# File 'app/models/metasploit/credential/origin/session.rb', line 33
|
#session ⇒ Mdm::Session
The session on which the post module was run to gather the core credentials.
25 26 27 |
# File 'app/models/metasploit/credential/origin/session.rb', line 25 belongs_to :session, class_name: 'Mdm::Session', inverse_of: :credential_origins |