3 ms·
the injected DLL has to be written specifically with Detours in mind Does it? I've almost (ie: haven't :P) used Detours but https://github.com/Microsoft/Detour
by andrewf 8y ago
the injected DLL has to be written specifically with Detours in mind
Does it? I've almost (ie: haven't :P) used Detours but https://github.com/Microsoft/Detours/wiki/OverviewInterception https://github.com/Microsoft/Detours/wiki/OverviewIntercepti... reads like it can rewrite standard function prologues.
- int_19h 8y agoI didn't phrase that unambiguously -"injected DLL" in this case means "the DLL with new code that is injected", not "the DLL that the code is being injected into". With LD_PRELOAD, all you need to override a symbol is an .so that exports one with the same name. With Detours, you need to write additional code that actually registers the override as replacing such-and-such function from such-and-such DLL. But yes, the code you're overriding doesn't need to know about any of that.
- andrewf 8y agoAh, I get it. Thanks.