![]() |
Windows Api Hooking
http://www.compile.ro/2018/06/24/interceptarea-functiilor-din-windows/
Credits to developer ! Code:
VOID DetourSet(DWORD old_func, DWORD new_func, BYTE* old_header, BYTE* new_header) { |
Hurray for C macros?
|
1 Attachment(s)
@Fyyre
HTML Code:
https://reverseengineering.stackexchange.com/questions/15933/how-to-bypass-or-block-getsystemtimeThanks ! |
https://github.com/Fyyre/oldsite
|
Hi there,
Today I made this method/project available via my Github. I hope you find it helpful: https://github.com/Fyyre/proxy_dll Quote:
|
This code only for x86 for x64 need changed
anyone can help with this? Code:
#define DETOUR_DEFINE(F) BYTE OH_##F[5]; BYTE NH_##F[5]; |
Quote:
Maybe you just need to change DWORD to UInt64 (old_func, new_func). Also you might face error in some functions(size of instructions), you can't overwrite bytes blindly unless you don't have any plan to use original function anymore !!! |
false in x64 different.
|
Can you describe your problem with sample code ?!
It's working for me :| Following link contains sample source (in delphi) with compiled x86/x64 files: https://mega.nz/file/TUw2TQqJ#CnR-YKixZMICNTQ8H7wFwAkKCfOR3l5OpJq26S-AWvM |
I have solved with minhook, above code is only for x86 can not work correctly in x64 app, that;s why used minhook.
|
yeah, for x64 one need to use 8 byte addresses, means
DWORD -> QWORD, etc |
can if have time post correct code. I don;t get it sorry. but if you know how to please.
other idea's of time hooks can find in github, some working as expected some not. I think some app use to detect time check some windows / registry entry??? time for a created existing etc files because windows start in real system with real time and compare that file time with time stored in secure SL storage??? |
Thanks for this, I will learning API Hook use new way.
|
| All times are GMT +8. The time now is 11:43. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX