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-6.0.11 app/models/metasploit/credential/blank_password.rb
metasploit-credential-6.0.10 app/models/metasploit/credential/blank_password.rb
metasploit-credential-6.0.9 app/models/metasploit/credential/blank_password.rb
metasploit-credential-6.0.8 app/models/metasploit/credential/blank_password.rb
metasploit-credential-6.0.7 app/models/metasploit/credential/blank_password.rb
metasploit-credential-6.0.6 app/models/metasploit/credential/blank_password.rb
metasploit-credential-6.0.5 app/models/metasploit/credential/blank_password.rb
metasploit-credential-6.0.4 app/models/metasploit/credential/blank_password.rb
metasploit-credential-6.0.3 app/models/metasploit/credential/blank_password.rb
metasploit-credential-6.0.2 app/models/metasploit/credential/blank_password.rb
metasploit-credential-6.0.1 app/models/metasploit/credential/blank_password.rb
metasploit-credential-6.0.0 app/models/metasploit/credential/blank_password.rb
metasploit-credential-5.0.9 app/models/metasploit/credential/blank_password.rb
metasploit-credential-5.0.8 app/models/metasploit/credential/blank_password.rb
metasploit-credential-5.0.7 app/models/metasploit/credential/blank_password.rb
metasploit-credential-5.0.6 app/models/metasploit/credential/blank_password.rb
metasploit-credential-5.0.5 app/models/metasploit/credential/blank_password.rb
metasploit-credential-5.0.4 app/models/metasploit/credential/blank_password.rb
metasploit-credential-5.0.3 app/models/metasploit/credential/blank_password.rb
metasploit-credential-5.0.2 app/models/metasploit/credential/blank_password.rb