Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
process_overwriting — PE injection technique that overwrites a suspended process's executable with a payload, enabling code execution under a benign process identity. | Kitploit
Tools/GitHubGitHub/hasherezade/process_overwriting
ExploitationRed TeamingPayload DevelopmentBinary Exploitation
GitHubhasherezade/process_overwriting

process_overwriting

PE injection technique that overwrites a suspended process's executable with a payload, enabling code execution under a benign process identity.

View Repository
472881 year agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Process Overwriting

Build status

Process Overwriting is a PE injection technique, closely related to Process Hollowing and Module Overloading.

With its help, you can replace the main executable (not a DLL) of the target process.

It works only for a newly created process - injection to existing processes is not supported with this technique.

WARNING: The size of the target image must be NOT SMALLER than the size of the payload image.

Steps taken:

  1. creates a suspended process from a benign file (with CFG disabled)
  2. maps the payload in memory, and writes it over the originally mapped image (without unmapping of the original image)
  3. updates the entry point of the process to the entry point of the payload
  4. resumes the process, executing the replaced PE

[!IMPORTANT]
Read FAQ

Demo:

The demo payload (demo.bin) injected into Windows Calc (default target):

In memory (via Process Hacker):

📹 Process Overwriting on Windows 11 24H2: https://youtu.be/sZ8tMwKfvXw

Clone:

Use recursive clone to get the repo together with all the submodules:

root@kitploit:~
git clone --recursive https://github.com/hasherezade/process_overwriting.git
Download Tool