Exception: MetasploitPayloads::NotReadableError
- Defined in:
- lib/metasploit-payloads/error.rb
Overview
Error raised when the user does not have read permissions for a Metasploit Payloads file
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path = '') ⇒ NotReadableError
constructor
A new instance of NotReadableError.
Constructor Details
#initialize(path = '') ⇒ NotReadableError
Returns a new instance of NotReadableError.
21 22 23 24 |
# File 'lib/metasploit-payloads/error.rb', line 21 def initialize(path = '') @path = path super("Meterpreter path #{@path} is not readable. Check if you have read access and try again.") end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
19 20 21 |
# File 'lib/metasploit-payloads/error.rb', line 19 def path @path end |