Skip to content
Proyek

adamhlt/Process-Hollowing

Lihat di GitHub

Tentang

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

Desain dan media

Cara angka ini diukur

Yang dapat Anda lakukan

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

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
+1
dalam 15 hari
+1
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

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.

Jelajahi proyek terkait

Memuat…