Exception: MetasploitPayloads::HashMismatchError

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

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

#pathObject (readonly)

Returns the value of attribute path.



29
30
31
# File 'lib/metasploit-payloads/error.rb', line 29

def path
  @path
end