Class: Rex::Post::Meterpreter::Extensions::Stdapi::Railgun::DLLWrapper
- Inherits:
-
Object
- Object
- Rex::Post::Meterpreter::Extensions::Stdapi::Railgun::DLLWrapper
- Defined in:
- lib/rex/post/meterpreter/extensions/stdapi/railgun/dll_wrapper.rb
Instance Attribute Summary collapse
-
#_client ⇒ Object
readonly
Returns the value of attribute _client.
-
#_dll ⇒ Object
readonly
Returns the value of attribute _dll.
Instance Method Summary collapse
-
#functions ⇒ Object
For backwards compatability.
-
#initialize(dll, client) ⇒ DLLWrapper
constructor
A new instance of DLLWrapper.
- #method_missing(sym, *args) ⇒ Object
Constructor Details
#initialize(dll, client) ⇒ DLLWrapper
Returns a new instance of DLLWrapper.
11 12 13 14 |
# File 'lib/rex/post/meterpreter/extensions/stdapi/railgun/dll_wrapper.rb', line 11 def initialize(dll, client) @_dll = dll @_client = client end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args) ⇒ Object
23 24 25 |
# File 'lib/rex/post/meterpreter/extensions/stdapi/railgun/dll_wrapper.rb', line 23 def method_missing(sym, *args) _dll.call_function(sym, args, _client) end |
Instance Attribute Details
#_client ⇒ Object (readonly)
Returns the value of attribute _client.
9 10 11 |
# File 'lib/rex/post/meterpreter/extensions/stdapi/railgun/dll_wrapper.rb', line 9 def _client @_client end |
#_dll ⇒ Object (readonly)
Returns the value of attribute _dll.
9 10 11 |
# File 'lib/rex/post/meterpreter/extensions/stdapi/railgun/dll_wrapper.rb', line 9 def _dll @_dll end |
Instance Method Details
#functions ⇒ Object
For backwards compatability. People check if functions are added this way XXX: Depricate this
18 19 20 21 |
# File 'lib/rex/post/meterpreter/extensions/stdapi/railgun/dll_wrapper.rb', line 18 def functions # warn 'Depricated.' _dll.functions end |