Reentrance protection

c++ / delphi package - dll injection and api hooking

Reentrance protection

Postby _NN_ » Wed Jul 11, 2018 2:28 pm

Several hooking engines have built-in support for reentrance protection, i.e. if you hook is called from inside original function hook.
Is there some similar mechanism in madCodeHook ?
Posts: 55
Joined: Mon Jan 21, 2013 4:00 pm

Re: Reentrance protection

Postby madshi » Wed Jul 18, 2018 8:12 am

I have some such protection in 32bit, but not yet in 64bit. It's on my to do list to add support for that, but I haven't gotten around to it yet. Nobody has ever asked for this yet, so priority hasn't been very high so far. You're the first one asking...
Site Admin
Posts: 10268
Joined: Sun Mar 21, 2004 5:25 pm

Re: Reentrance protection

Postby starix » Wed May 08, 2019 11:55 am

+1 to request.
Out project hooks 100+ WinApi functions. So we implemented re-entrance protection on our side. Based on our tests sometime we have 5+ hooked functions deep in call stack. Our protection based on TLS variables, so it give performance impact on such situations. So it will be good if you can implement such protection on trampoline side.
Posts: 1
Joined: Wed May 08, 2019 11:29 am

Return to madCodeHook

Who is online

Users browsing this forum: Google [Bot] and 18 guests