Exetools

Exetools (https://forum.exetools.com/index.php)
-   Source Code (https://forum.exetools.com/forumdisplay.php?f=46)
-   -   [C++ Sample] DLL injection and API hooking (https://forum.exetools.com/showthread.php?t=19522)

DavidXanatos 05-07-2020 21:31

[C++ Sample] DLL injection and API hooking
 
I needed a program to think its not running in a terminal session so I threw something together from existing lib's that does the job: https://github.com/DavidXanatos/HideTS
Very simple using the MinHook lib.

Given how simple it is I thought it may be a good sample for anyone who needs to hook some windows API in some program for whatever reason.

Might be useful to some beginners.

user1 05-16-2020 16:12

for .NET applications example?

DavidXanatos 06-06-2020 04:41

No .NET yet...

But I have reworked the Injector: https://github.com/DavidXanatos/HideTS/tree/master/Injector
It now injects without using create remote thread by hijacking the main thread, and it has an option to disable the parelell dll loading introduced with a recent win 10 edition.

Also the injector doesn't longer need to be the same bit'ness as the target process and dll, well if its 64 bit it can do booth, it its 32 bit it can only do 32, so well its half universal LOL.

user1 06-06-2020 22:58

you should get a promotion.

DavidXanatos 06-07-2020 01:45

Quote:

Originally Posted by user1 (Post 120313)
you should get a promotion.

I would like that :D


All times are GMT +8. The time now is 01:00.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX