Skip to content
프로젝트

adamhlt/Process-Hollowing

GitHub에서 보기

소개

Process Hollowing in C++ (x86 / x64) - Process PE image replacement

디자인 및 미디어

이 수치를 측정하는 방법

What you can do

  • The PE image has a valid signature
  • The target process and the PE image share the same architecture
  • The PE image has a relocation table (otherwise its preferred image base must be free)
  • The target subsystem matches (a mismatch is only reported as a warning)

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Process Hollowing

Process hollowing in C++, PE image replacement (x86 / x64)

Language Platform Arch License: GPL v3


Process Hollowing replaces the PE image of a legitimately started process with another one, without ever letting the original entry point run. The loader builds and runs on both x86 and x64.

If you don't know how the PE format is structured, take a look at this project.

Example

https://user-images.githubusercontent.com/48086737/158390795-e7371e21-b475-481e-ba9a-f1b646ee5cfc.mp4

Features

Checks performed before mapping

  • The PE image has a valid signature
  • The target process and the PE image share the same architecture
  • The PE image has a relocation table (otherwise its preferred image base must be free)
  • The target subsystem matches (a mismatch is only reported as a warning)

Mapping

  • Supports PE images with and without a relocation table
  • An image with no relocation table is mapped at its preferred base address

PEB rewrite

  • ImagePathName and CommandLine are rewritten in the target's PEB before the main thread is resumed, so the payload does not inherit the target's command line (GetCommandLineW) or image path (GetModuleFileNameW)
  • The strings are rewritten in place: the rewrite only happens when the new value fits in the existing buffer, otherwise a warning is logged and the original value is kept

Usage

runpe.exe [--verbose] <source image> <target process>
  • --verbose, -v: print detailed progress.
  • --help, -h: show the help.

License

This project is licensed under the GNU GPLv3.

관련 프로젝트 살펴보기

불러오는 중…