Catalog · How the catalog works
ThreadHijacking-Delphi
Thread hijacking
- ★ 14 on GitHub
Anyone may press Interesting, signed in or not. It helps others find this project.
README
Thread Hijacking
This repository contains educational code demonstrating thread hijacking techniques in Windows systems for security research and defensive purposes.
⚠️ Educational Purpose Only: This code is for security research and educational purposes. Use responsibly and only in controlled test environments.
Overview
This project demonstrates three different methods of thread hijacking in Windows systems:
- Creating and hijacking a new process
- Hijacking an existing process by PID
- Finding and hijacking a process by executable name
Technical Details
Implementation Methods
Method 1: Create and Hijack New Process
This method:
- Creates a new process in suspended state
- Allocates memory for shellcode
- Modifies thread context to execute shellcode
- Resumes thread execution
Method 2: Hijack by Process ID
Targets an existing process:
- Opens target process and its main thread
- Suspends thread execution
- Injects shellcode
- Modifies thread context
- Resumes execution
Method 3: Hijack by Process Name
High-level interface that:
- Finds process ID by executable name
- Calls PID-based hijacking method
- Handles process discovery and validation
Contributing
Contributions are welcome! If you have suggestions or bug fixes, please fork the repository and submit a pull request.
Made with ❤️ using Delphi RAD Studio

