Class: Rex::Post::Meterpreter::Extensions::Stdapi::Railgun::Def::Def_psapi
- Inherits:
-
Object
- Object
- Rex::Post::Meterpreter::Extensions::Stdapi::Railgun::Def::Def_psapi
- Defined in:
- lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_psapi.rb
Class Method Summary collapse
Class Method Details
.create_dll(dll_path = 'psapi') ⇒ 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_psapi.rb', line 12 def self.create_dll(dll_path = 'psapi') dll = DLL.new(dll_path, ApiConstants.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 |