Class: Metasploit::Credential::Origin::Manual

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/metasploit/credential/origin/manual.rb

Overview

Origin of core credentials that are manually entered by a #user.

Instance Attribute Summary collapse

Instance Attribute Details

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

Core credentials that were entered by the #user.

Returns:



11
12
13
14
# File 'app/models/metasploit/credential/origin/manual.rb', line 11

has_many :cores,
as: :origin,
class_name: 'Metasploit::Credential::Core',
dependent: :destroy

#created_atDateTime

When the credentials were manually created.

Returns:

  • (DateTime)


# File 'app/models/metasploit/credential/origin/manual.rb', line 28

#updated_atDateTime

When this origin was last updated.

Returns:

  • (DateTime)


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

#userMdm::User

The user that manually enters the credentials.

Returns:

  • (Mdm::User)


20
21
22
# File 'app/models/metasploit/credential/origin/manual.rb', line 20

belongs_to :user,
class_name: 'Mdm::User',
inverse_of: :credential_origins