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

Thread create messages? #9

Open
AraHaan opened this issue May 22, 2019 · 3 comments
Open

Thread create messages? #9

AraHaan opened this issue May 22, 2019 · 3 comments

Comments

@AraHaan
Copy link

AraHaan commented May 22, 2019

So I would like to know if there is a way (as a driver) to see and detect when another process creates a thread in my process. This is for a notification to my process to update it’s internal thread counter that I put in place for the fun of it (or to tell the process to exit upon the call to CreateRemoteThread to my process).

I also would like to figure out to have my program init, and unit my driver upon closing and to feed data to/from it. If anyone here knows how that is done and how some well know online game anti-hacks do it with a dll and a device driver to detect suspicious programs running, debuggers, etc.

@AraHaan
Copy link
Author

AraHaan commented May 22, 2019

Nice, thanks, now how about the process <-> driver communication?

Mainly because I would like my dll api to be able to load the driver, get it to do what it needs, then on it’s dll unload, tear down the driver.

@wumn290
Copy link

wumn290 commented May 23, 2019

You're probably looking for this: https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/content/ntddk/nf-ntddk-pssetcreatethreadnotifyroutine

...or "Ex" version: https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/content/ntddk/nf-ntddk-pssetcreatethreadnotifyroutineex

大佬, 我这边遇到了一个问题, 我用InjMethodThunk方法在win8.1的64位系统下启动不了32位进程, 你这边应该也可以重现, 大佬可以帮忙看下吗?

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