12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_crypt32.rb', line 12
def self.create_library(constant_manager, library_path = 'crypt32')
dll = Library.new(library_path, constant_manager)
dll.add_function('CryptUnprotectData', 'BOOL', [
['PBLOB','pDataIn', 'in'],
['PWCHAR', 'szDataDescr', 'out'],
['PBLOB', 'pOptionalEntropy', 'in'],
['LPVOID', 'pvReserved', 'in'],
['PBLOB', 'pPromptStruct', 'in'],
['DWORD', 'dwFlags', 'in'],
['PBLOB', 'pDataOut', 'out']
])
return dll
end
|