TsudaKageyu / minhook

The Minimalistic x86/x64 API Hooking Library for Windows
http://www.codeproject.com/KB/winsdk/LibMinHook.aspx
Other
4.38k stars 892 forks source link

Injecting Hook into remote process #63

Open vbnlohani opened 6 years ago

vbnlohani commented 6 years ago

Does this library has in built functionality for hooking API calls in a different process via injection ?

mrsshr commented 6 years ago

No.

4zv4l commented 1 year ago

so even if we use CreateRemoteThread calling LoadLibrary and the hook happens in the DllMain of the dll bein injected, it wouldn't work ?

m417z commented 1 year ago

It will probably work, but make sure that MinHook doesn't do any operations that are forbidden in DllMain. I don't think it does, but I didn't verify it.

4zv4l commented 1 year ago

well I tried multiple library nimhook/minhook/nthookengine and it segfault when I call the hooked function, which doesn't happen when the process load the library itself so I thought it would require something special but I don't find any info about that.

GermanAizek commented 8 months ago

@m417z, @4zv4l have there been any test results, is it possible to use MinHook in conjunction with dll injection in another process?