Files
metasploit-gs/lib/rex/post/meterpreter/extensions/stdapi/railgun/dll_wrapper.rb
T
Tab Assassin 7e5e0f7fc8 Retab lib
2013-08-30 16:28:33 -05:00

28 lines
524 B
Ruby

# -*- coding: binary -*-
module Rex
module Post
module Meterpreter
module Extensions
module Stdapi
module Railgun
class DLLWrapper
attr_reader :_client, :_dll
def initialize(dll, client)
@_dll = dll
@_client = client
end
# For backwards compatability. People check if functions are added this way
# XXX: Depricate this
def functions
# warn 'Depricated.'
_dll.functions
end
def method_missing(sym, *args)
_dll.call_function(sym, args, _client)
end
end
end; end; end; end; end; end