Janardhan
21 years ago
I tried API hooking using jeffrey ritcher's which uses
replacing IAT(Import Address Table) of the dll.
It is failing for malloc and free. Even though there are so many new and
delete done, the control is not coming to my hooking functions. Can anyone
help me w.r.t this.
void * __cdecl OverRiden_malloc(size_t);
void __cdecl OverRiden_free(void *);
CAPIHook* my_MallocObj = new CAPIHook("msvcrt.dll", "malloc",
(PROC)OverRiden_malloc,TRUE);
CAPIHook* my_DeleteObj = new CAPIHook("msvcrt.dll", "free",
(PROC)OverRiden_free,TRUE);
replacing IAT(Import Address Table) of the dll.
It is failing for malloc and free. Even though there are so many new and
delete done, the control is not coming to my hooking functions. Can anyone
help me w.r.t this.
void * __cdecl OverRiden_malloc(size_t);
void __cdecl OverRiden_free(void *);
CAPIHook* my_MallocObj = new CAPIHook("msvcrt.dll", "malloc",
(PROC)OverRiden_malloc,TRUE);
CAPIHook* my_DeleteObj = new CAPIHook("msvcrt.dll", "free",
(PROC)OverRiden_free,TRUE);