Exception: MetasploitPayloads::NotReadableError

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

Instance Method Summary collapse

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

#pathObject (readonly)

Returns the value of attribute path.



19
20
21
# File 'lib/metasploit-payloads/error.rb', line 19

def path
  @path
end