Sha256: 8cddea0ad32270aa383a6fe0d7a212a0d600e44a610ba93ebaadd921182a48b3
Contents?: true
Size: 1.65 KB
Versions: 26
Compression:
Stored size: 1.65 KB
Contents
# Origin of `Metasploit::Credential::Core`s that were gathered by a {#post_reference_name post module} used on a # {#session}. Contrast with a {Metasploit::Credential::Origin::Service}, which is for # {Metasploit::Credential::Origin::Service#module_full_name auxiliary or exploit modules} that gather credentials # directly from a {Metasploit::Credential::Origin::Service#service service} without the need for a separate post module # or even a session. class Metasploit::Credential::Origin::Session < ActiveRecord::Base # # Associations # # @!attribute cores # {Metasploit::Credential::Core Core credentials} imported from {#session} using # {#post_reference_name the post module}. # # @return [ActiveRecord::Relation<Metasploit::Credential::Core>] has_many :cores, as: :origin, class_name: 'Metasploit::Credential::Core', dependent: :destroy # @!attribute session # The session on which {#post_reference_name the post module} was run to gather the {#cores core credentials}. # # @return [Mdm::Session] belongs_to :session, class_name: 'Mdm::Session', inverse_of: :credential_origins # # Attributes # # @!attribute post_reference_name # The reference name of a `Msf::Post` module. # # @return [String] a `Mdm::Module::Detail#refname` for a `Mdm::Module::Detail` where `Mdm::Module:Detail#mtype` is # `'post'.` # # Validations # validates :post_reference_name, presence: true, uniqueness: { scope: :session_id } validates :session, presence: true Metasploit::Concern.run(self) end
Version data entries
26 entries across 26 versions & 1 rubygems