Class: Metasploit::Credential::Origin::Session

Inherits:
ApplicationRecord
  • Object
show all
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

Instance Attribute Details

#coresActiveRecord::Relation<Metasploit::Credential::Core>

Returns:



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_nameString

The reference name of a ‘Msf::Post` module.

Returns:

  • (String)

    a ‘Mdm::Module::Detail#refname` for a `Mdm::Module::Detail` where `Mdm::Module:Detail#mtype` is `’post’.‘



# File 'app/models/metasploit/credential/origin/session.rb', line 33

#sessionMdm::Session

The session on which the post module was run to gather the core credentials.

Returns:

  • (Mdm::Session)


25
26
27
# File 'app/models/metasploit/credential/origin/session.rb', line 25

belongs_to :session,
class_name: 'Mdm::Session',
inverse_of: :credential_origins