Sha256: 18cf762749023af73155b72e3c4e2e95d45775b352a704e03582dc84d9839895

Contents?: true

Size: 909 Bytes

Versions: 94

Compression:

Stored size: 909 Bytes

Contents

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

  #
  # 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

94 entries across 94 versions & 1 rubygems

Version Path
metasploit-credential-3.0.4 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-3.0.3 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-3.0.2 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-3.0.1 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-3.0.0 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-2.0.14 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-2.0.13 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-2.0.12 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-2.0.11 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-2.0.10 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-2.0.9 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-2.0.8 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-2.0.7 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-2.0.6 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-2.0.5 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-2.0.4 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-2.0.3 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-2.0.2 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-2.0.1 app/models/metasploit/credential/origin/cracked_password.rb
metasploit-credential-2.0.0 app/models/metasploit/credential/origin/cracked_password.rb