Exception: Metasploit::Framework::PasswordCracker::InvalidWordlist
- Inherits:
-
StandardError
- Object
- StandardError
- Metasploit::Framework::PasswordCracker::InvalidWordlist
- 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
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(model) ⇒ InvalidWordlist
constructor
A new instance of InvalidWordlist.
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..join(', ') super(errors) end |
Instance Attribute Details
#model ⇒ Object (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 |