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

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

Class Method Summary collapse

Class Method Details

.create_dll(dll_path = 'netapi32') ⇒ Object



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

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

	dll.add_function('NetUserDel', 'DWORD',[
		["PWCHAR","servername","in"],
		["PWCHAR","username","in"],
		])

	dll.add_function('NetGetJoinInformation', 'DWORD',[
		["PBLOB","lpServer","in"],
		["PDWORD","lpNameBugger","out"],
		["PDWORD","BufferType","out"]
		])

	return dll
end