Class: Metasploit::Credential::Origin::CrackedPassword

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

Overview

An origin for core credentials that were cracked from a core credentials

Instance Attribute Summary collapse

Instance Attribute Details

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

Core credentials derived from cracking #originating_core.

Returns:



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

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

#originating_coreMetasploit::Credential::Core

The credential that was cracked to get this one.



21
22
23
# File 'app/models/metasploit/credential/origin/cracked_password.rb', line 21

belongs_to :originating_core,
class_name: 'Metasploit::Credential::Core',
foreign_key: 'metasploit_credential_core_id'