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

niculaita 12-29-2020 06:00

https://sanet.st/blogs/islamayman/dll_injector_hacker_pro.3586757.html

ycloud 01-04-2021 02:07

hook GetSystemMetrics


All times are GMT +8. The time now is 21:45.

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