Skip to content
プロジェクト

adamhlt/Process-Hollowing

GitHubで見る

概要

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

デザイン・メディア

この数値の測り方

できること

  • 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)

計測したスター増加

24時間
0
7日間
+1
15日間
+1
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

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.

関連プロジェクトを探す

読み込み中…