Skip to content
المشاريع

حول

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 ساعة
٠
خلال 7 أيام
+١
خلال 15 يومًا
+١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

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.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…