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/windows/def_psapi.rb', line 12
def self.create_library(constant_manager, library_path = 'psapi')
dll = Library.new(library_path, constant_manager)
dll.add_function('EnumDeviceDrivers', 'BOOL',[
%w(PBLOB lpImageBase out),
%w(DWORD cb in),
%w(PDWORD lpcbNeeded out)
])
dll.add_function('GetDeviceDriverBaseNameA', 'DWORD', [
%w(LPVOID ImageBase in),
%w(PBLOB lpBaseName out),
%w(DWORD nSize in)
])
return dll
end
|