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

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

Class Method Summary collapse

Class Method Details

.create_library(constant_manager, library_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/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