Sha256: 6effbd06872dbfb1020b65ec6fb9012ba9782d0753195aafb511a66059df805e

Contents?: true

Size: 908 Bytes

Versions: 28

Compression:

Stored size: 908 Bytes

Contents

# An origin for {#cores core credentials} that were cracked from a {#originating_core core credentials}
class Metasploit::Credential::Origin::CrackedPassword < ApplicationRecord

  #
  # Associations
  #

  # @!attribute cores
  #   {Metasploit::Credential::Core Core credentials} derived from cracking {#originating_core}.
  #
  #   @return [ActiveRecord::Relation<Metasploit::Credential::Core>]
  has_many :cores,
           as: :origin,
           class_name: 'Metasploit::Credential::Core',
           dependent: :destroy

  # @!attribute originating_core
  #   The credential that was cracked to get this one.
  #
  #   @return [Metasploit::Credential::Core]
  belongs_to :originating_core,
             class_name: 'Metasploit::Credential::Core',
             foreign_key: 'metasploit_credential_core_id'

  validates :originating_core,
            presence: true

  Metasploit::Concern.run(self)

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
metasploit-credential-6.0.11 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-6.0.10 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-6.0.9 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-6.0.8 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-6.0.7 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-6.0.6 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-6.0.5 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-6.0.4 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-6.0.3 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-6.0.2 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-6.0.1 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-6.0.0 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-5.0.9 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-5.0.8 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-5.0.7 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-5.0.6 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-5.0.5 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-5.0.4 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-5.0.3 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-5.0.2 app/models/metasploit/credential/origin/cracked_password.rb