Exception: MetasploitPayloads::NotFoundError
- Defined in:
- lib/metasploit-payloads/error.rb
Overview
Error raised when a Metasploit Payloads file doesn’t exist.
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path = '') ⇒ NotFoundError
constructor
A new instance of NotFoundError.
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
#path ⇒ Object (readonly)
Returns the value of attribute path.
9 10 11 |
# File 'lib/metasploit-payloads/error.rb', line 9 def path @path end |