Code Monkey home page Code Monkey logo

cave-finder's Introduction

                         ______                    _______           __     
                        / ____/___ __   _____     / ____(_)___  ____/ /__  _____ 
                       / /   / __ `/ | / / _ \   / /_  / / __ \/ __  / _ \/ ___/
                      / /___/ /_/ /| |/ /  __/  / __/ / / / / / /_/ /  __/ /
                      \____/\__,_/ |___/\___/  /_/   /_/_/ /_/\__,_/\___/_/
                                                                        
                                                                        
                            Tool to find code cave in PE image (x86 / x64)
                              Find empty space to place code in PE files

C++ Windows x86 x64

๐Ÿ“– Project Overview :

This tool help to find code caves in PE images (exe, dll, ...).

Retrieved informations :

  • Section whe the cave reside.
  • Size of the cave.
  • Start / End file offset of the cave.
  • Start / End virtual address of the cave
  • Permission on the cave (read / write / execute).

The program retrieve free space in the file (array of 0x0), in every sections of a PE image. With enough space, you can write a shellcode...

This project can be compiled for x86 and x64 architecture.

๐Ÿš€ Getting Started :

Visual Studio :

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

Other IDE using CMAKE :

This CMakeLists.txt should compile the project.

cmake_minimum_required(VERSION 3.0)
project(miner)

set(CMAKE_CXX_STANDARD 17)

add_executable(miner main.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 :

miner.exe <source image> <code cave size>

Demonstration :

Demo.mp4

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.