Skip to content

This project seeks to inject MessageBox shellcode through exploiting the main thread of a target process

License

Notifications You must be signed in to change notification settings

kaveOO/ThreadHijacking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thread Hijacking

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. :)

AssaultCubeDMA

About The Project

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.

GifShowcase

Built With

  • C
  • Visual Studio
  • Windows 11

(back to top)

Getting Started

No Compilation Needed (Recommended)

  1. Download from Releases
    Download Target.exe and Threat.exe from the Releases tab of the Repository
    
  2. Run both programs
    Run Target.exe first then Threat.exe, threat will inject the shellcode into Target.exe
    
  3. 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.
    

Installation & Compilation

  1. Clone the repo
    https://github.com/kaveOO/ThreadHijacking.git
    
  2. 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
    
  3. 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
    
  4. Run both programs
    Run Target.exe first then Threat.exe, threat will inject the shellcode into Target.exe
    
  5. 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.
    

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Acknowledgments

(back to top)

About

This project seeks to inject MessageBox shellcode through exploiting the main thread of a target process

Resources

License

Stars

Watchers

Forks

Languages