Giter Site home page Giter Site logo

process-hollowing's Introduction

           ____                                    __  __      ____              _             
          / __ \_________  ________  __________   / / / /___  / / /___ _      __(_)___  ____ _
         / /_/ / ___/ __ \/ ___/ _ \/ ___/ ___/  / /_/ / __ \/ / / __ \ | /| / / / __ \/ __ `/ 
        / ____/ /  / /_/ / /__/  __(__  |__  )  / __  / /_/ / / / /_/ / |/ |/ / / / / / /_/ /
       /_/   /_/   \____/\___/\___/____/____/  /_/ /_/\____/_/_/\____/|__/|__/_/_/ /_/\__, /
                                                                                     /____/
                                                                                     
                                                                                    
                                 Process Hollowing in C++ (x86 / x64)         
                                    Process PE Image Replacement

C++ Windows x64

๐Ÿ“– Project Overview :

This process hollowing implementation is written in C++, the loader is a x64 executable with can inject into x86 and x64 processes.

The loader make severals checks before trying to inject the new PE image.

  • Check if the PE image have a valid signature.
  • Check if the target process and the PE image have the same architecture.
  • Check if the target process and the PE image have the same subsystem.
  • Check if the PE image have a relocation table.

The loader is able to inject PE image with and witout relocation table, if there is no relocation table the loader try to allocate memory at the preferred image base address.

If you don't know how PE format are structured you can look at this project.

๐Ÿš€ Getting Started :

Warning
This is a x64 executable, you can't compile this project in x86, this loader is made to inject into x86 and x64 processes. You can easily make a x86 process hollowing program based on this repository.

Visual Studio :

  1. Open the solution file (.sln).
  2. Build the project in Release (x64)

Other IDE using CMAKE :

This CMakeLists.txt should compile the project.

cmake_minimum_required(VERSION 3.0)
project(runpe)

set(CMAKE_CXX_STANDARD 17)

add_executable(runpe Process_Hollowing.cpp)

Tested on CLion with MSVC compiler, you can get Visual Studio Build Tools here.

๐Ÿงช Usage :

How to use the program :

Use it in the command line :

runpe.exe <source image> <target process>

Demonstration :

Demo.mp4

process-hollowing's People

Contributors

adamhlt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

process-hollowing's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.