Class: Rex::Post::Meterpreter::Extensions::Stdapi::Railgun::Def::Def_shell32

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

Class Method Summary collapse

Class Method Details

.create_dll(dll_path = 'shell32') ⇒ Object


12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_shell32.rb', line 12

def self.create_dll(dll_path = 'shell32')
  dll = DLL.new(dll_path, ApiConstants.manager)

  dll.add_function('IsUserAnAdmin', 'BOOL', [
    ])

  dll.add_function('ShellExecuteA', 'DWORD',[
    ["DWORD","hwnd","in"],
    ["PCHAR","lpOperation","in"],
    ["PCHAR","lpFile","in"],
    ["PCHAR","lpParameters","in"],
    ["PCHAR","lpDirectory","in"],
    ["DWORD","nShowCmd","in"]
    ])

  return dll
end