Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Injecting Hook into remote process #63

Open
vbnlohani opened this issue Mar 5, 2018 · 6 comments
Open

Injecting Hook into remote process #63

vbnlohani opened this issue Mar 5, 2018 · 6 comments

Comments

@vbnlohani
Copy link

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

@mrsshr
Copy link

mrsshr commented Mar 5, 2018

No.

@4zv4l
Copy link

4zv4l commented Feb 22, 2023

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
Copy link
Collaborator

m417z commented Feb 22, 2023

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
Copy link

4zv4l commented Feb 22, 2023

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
Copy link

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

@DefinitlyEvil
Copy link

DefinitlyEvil commented Dec 16, 2024

Hi the hook worked but the target process crashed somehow when calling the original function, any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants