Exception: Metasploit::Framework::PasswordCracker::InvalidWordlist

Inherits:
StandardError
  • Object
show all
Defined in:
lib/metasploit/framework/password_crackers/invalid_wordlist.rb

Overview

This class is the generic Exception raised by a Wordlist when it fails validation. It rolls up all validation errors into a single exception so that all errors can be dealt with at once.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ InvalidWordlist

Returns a new instance of InvalidWordlist.


11
12
13
14
15
16
# File 'lib/metasploit/framework/password_crackers/invalid_wordlist.rb', line 11

def initialize(model)
  @model = model

  errors = @model.errors.full_messages.join(', ')
  super(errors)
end

Instance Attribute Details

#modelObject (readonly)

Returns the value of attribute model


9
10
11
# File 'lib/metasploit/framework/password_crackers/invalid_wordlist.rb', line 9

def model
  @model
end