This is my first GetProcAddress attempt by hash. The programm does only create a textfile as test.
Tested on WinXp but i don´t know about Win7 or so.
Useful comments are welcome...
Posted 17 November 2013 - 01:33 AM
This is my first GetProcAddress attempt by hash. The programm does only create a textfile as test.
Tested on WinXp but i don´t know about Win7 or so.
Useful comments are welcome...
Posted 17 November 2013 - 03:10 AM
very nice code. I got a Access Violation running on W7 x86 in this code part.
cmp dword [eax+7],'ileW' ; CreateFileW
saludos
Posted 17 November 2013 - 01:36 PM
Just make sure that getting Kernel base works on all versions of windows, both x86 and x64.
proc GetKernel32
; GetKernel by PEB x86 + x64
mov eax, [fs:30h]
mov eax, [eax + 0Ch]
mov eax, [eax + 0Ch]
mov eax, [eax]
mov eax, [eax]
mov eax, [eax + 18h]
ret
endp
Posted 18 November 2013 - 11:57 PM
karcrack, on 17 Nov 2013 - 01:46 AM, said:
Nice code ^^ As I bet you know won't be working with ordinals or forwarded exports...
Posted 19 November 2013 - 02:57 PM
ComeBack, on 18 Nov 2013 - 11:57 PM, said:
thx,but i did found my procaddress, so i thinking i don´t need to do it with ordinals
And forwared function should also work, but I have not tried it, but why u made a bet ?
You need the oridinal to get the correct function address.
Quote
Use the value from the AddressOfNameOrdinals array as the index into the AddressOfFunctions array. Say, if the value is 5, you must extract the value in the 5th element of the AddressOfFunctions array. That value is the RVA of the function.
Posted 19 November 2013 - 06:51 PM
Can't edit my post? Ok. This is something I did a long time ago, it explains what I mean.
It doesn't support forwarded exports.