Initial attempt

unstable
Meatballs1 2012-11-18 21:24:49 +00:00
parent 54c83d98fd
commit e057467329
2 changed files with 333 additions and 298 deletions

View File

@ -0,0 +1,34 @@
# -*- coding: binary -*-
module Rex
module Post
module Meterpreter
module Extensions
module Stdapi
module Railgun
module Def
class Def_wldap32
def self.create_dll(dll_path = 'wldap32')
dll = DLL.new(dll_path, ApiConstants.manager)
dll.add_function( 'ldap_sslinitW', 'PDWORD',[
['PCHAR', 'HostName', 'in'],
['DWORD', 'PortNumber', 'in'],
['DWORD', 'secure', 'in']
])
dll.add_function( 'ldap_simple_bind_sW', 'DWORD',[
['DWORD', 'ld', 'in'],
['PCHAR', 'dn', 'in'],
['PCHAR', 'passwd', 'in']
])
return dll
end
end
end; end; end; end; end; end; end

View File

@ -77,6 +77,7 @@ class Railgun
'netapi32',
'crypt32',
'wlanapi',
'wldap32'
].freeze
##