Exception: MetasploitPayloads::NotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/metasploit-payloads/error.rb

Overview

Error raised when a Metasploit Payloads file doesn’t exist.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path = '') ⇒ NotFoundError

Returns a new instance of NotFoundError.



11
12
13
14
# File 'lib/metasploit-payloads/error.rb', line 11

def initialize(path = '')
  @path = path
  super("Meterpreter path #{@path} not found. Ensure antivirus is not enabled, or reinstall Metasploit.")
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



9
10
11
# File 'lib/metasploit-payloads/error.rb', line 9

def path
  @path
end