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

Inject to Running processes (with no altertable threads) #5

Closed
iradization opened this issue Feb 27, 2019 · 3 comments
Closed

Inject to Running processes (with no altertable threads) #5

iradization opened this issue Feb 27, 2019 · 3 comments

Comments

@iradization
Copy link

iradization commented Feb 27, 2019

Hi,

I was wonder if it's optional to using APC to inject into already running processes that doesn't necessarily have alertable threads.

According to APC doc :

When a user-mode APC is queued, the thread to which it is queued is not directed to call the APC function unless it is in an alertable state. (I assume kernel-mode APC work the same way)

Is there a way to change thread state so it will accept APC calls, or any other alternative ?

thanks

@mrsshr
Copy link

mrsshr commented Feb 27, 2019

Try KeTestAlertThread to force deliver user apc.

EDIT:
see here: https://github.com/DarthTon/Blackbone/blob/master/src/BlackBoneDrv/Loader.c#L719

@wbenny
Copy link
Owner

wbenny commented Mar 6, 2019

Doesn't ForceUserApc solve your problem? (as specified in the README.md)

@iradization
Copy link
Author

Yes, I've tried that and it did. thanks !

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

3 participants