Exception: MetasploitPayloads::HashMismatchError
- Defined in:
- lib/metasploit-payloads/error.rb
Overview
Error raised when a Metasploit Payloads file’s hash does not match what is defined in the manifest file.
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path = '') ⇒ HashMismatchError
constructor
A new instance of HashMismatchError.
Constructor Details
#initialize(path = '') ⇒ HashMismatchError
Returns a new instance of HashMismatchError.
31 32 33 34 |
# File 'lib/metasploit-payloads/error.rb', line 31 def initialize(path = '') @path = path super("Meterpreter path #{@path} does not match the hash defined in the Metasploit Payloads manifest file.") end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
29 30 31 |
# File 'lib/metasploit-payloads/error.rb', line 29 def path @path end |