Sha256: 973e0c827de9547eea53588a52057162bbedbc875378bcd3c96af6ba736e073a

Contents?: true

Size: 446 Bytes

Versions: 80

Compression:

Stored size: 446 Bytes

Contents

# A blank password
class Metasploit::Credential::BlankPassword < Metasploit::Credential::Password
  #
  # Callbacks
  #

  before_save :blank_data

  #
  # Validations
  #

  validates :data,
            uniqueness: true

  #
  # Instance Methods
  #

  # Always makes sure the {Metasploit::Credential::Password#data} is set to an empty string.
  #
  # @return [void]
  def blank_data
    self.data = ''
  end

  Metasploit::Concern.run(self)
end

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
metasploit-credential-5.0.1 app/models/metasploit/credential/blank_password.rb
metasploit-credential-5.0.0 app/models/metasploit/credential/blank_password.rb
metasploit-credential-4.0.5 app/models/metasploit/credential/blank_password.rb
metasploit-credential-4.0.4 app/models/metasploit/credential/blank_password.rb
metasploit-credential-4.0.3 app/models/metasploit/credential/blank_password.rb
metasploit-credential-4.0.2 app/models/metasploit/credential/blank_password.rb
metasploit-credential-4.0.1 app/models/metasploit/credential/blank_password.rb
metasploit-credential-4.0.0 app/models/metasploit/credential/blank_password.rb
metasploit-credential-3.0.4 app/models/metasploit/credential/blank_password.rb
metasploit-credential-3.0.3 app/models/metasploit/credential/blank_password.rb
metasploit-credential-3.0.2 app/models/metasploit/credential/blank_password.rb
metasploit-credential-3.0.1 app/models/metasploit/credential/blank_password.rb
metasploit-credential-3.0.0 app/models/metasploit/credential/blank_password.rb
metasploit-credential-2.0.14 app/models/metasploit/credential/blank_password.rb
metasploit-credential-2.0.13 app/models/metasploit/credential/blank_password.rb
metasploit-credential-2.0.12 app/models/metasploit/credential/blank_password.rb
metasploit-credential-2.0.11 app/models/metasploit/credential/blank_password.rb
metasploit-credential-2.0.10 app/models/metasploit/credential/blank_password.rb
metasploit-credential-2.0.9 app/models/metasploit/credential/blank_password.rb
metasploit-credential-2.0.8 app/models/metasploit/credential/blank_password.rb