Class: Rex::Post::Meterpreter::Extensions::Stdapi::Railgun::DLLWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/post/meterpreter/extensions/stdapi/railgun/dll_wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#_clientObject (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

#_dllObject (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

#functionsObject

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