class Rex::Post::Meterpreter::Extensions::Stdapi::Railgun::Def::Def_psapi

Public Class Methods

create_dll(dll_path = 'psapi') click to toggle source
# File lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_psapi.rb, line 11
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