This is a simple program that hijacks the main thread of another process on Windows 11. This type of program can be used for malware development, anti-cheat bypassing, and much more. :)
This program took me around four days to complete; I mainly used ressources from the internet, and the Windows API. The goal of this project is to demonstrate thread hijacking by executing shellcode in the main thread of another process.
- Download from Releases
Download Target.exe and Threat.exe from the Releases tab of the Repository - Run both programs
Run Target.exe first then Threat.exe, threat will inject the shellcode into Target.exe - Enjoy !
You should see a MessageBox appearing that is attached to the main thread (paused) of Target.exe. If you click OK or close the MessageBox, the Target program will automatically shut down.
- Clone the repo
https://github.com/kaveOO/ThreadHijacking.git - Build Target.exe (Release | x64)
Open Target.sln make sure that Configuration is set to Release and Platform set to x64 Click on Build -> Build Solution or Ctrl+Shift+B - Build Threat.exe (Release | x64)
Open Threat.sln make sure that Configuration is set to Release and Platform set to x64 Click on Build -> Build Solution or Ctrl+Shift+B - Run both programs
Run Target.exe first then Threat.exe, threat will inject the shellcode into Target.exe - Enjoy !
You should see a MessageBox appearing that is attached to the main thread (paused) of Target.exe. If you click OK or close the MessageBox, the Target program will automatically shut down.
Distributed under the MIT License. See LICENSE.txt for more information.

