简体   繁体   中英

How to find a custom function's address to hook/detour in another running process?

Related to: How to find a functions address to hook/detour in an EXE file?

I have to detour a function defined inside the executable I'm injecting my code into. The application is Open-Source so I know everything about the function I'd need for hooking it.

In the accepted answer to that question, it says to hook some low level windows api functions first to get the address of the actual function I want to hook, question is, which windows API function should I hook?

Choose an API inside your target EXE that get called first when it runs. Load it to OllyDbg and trace until you find one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM