Giter Site home page Giter Site logo

pepatch's Introduction

pepatch

A hacky tool for patching PE format binaries.

Examples

Please take a look at the files under example/

Dependencies

  • For pypi packages: See requirements.txt. Use this command to install all the dependencies:
pip install -r requirements.txt
  • pefile: This project contains a slightly modified version of pefile module for better usage.

Few notes

  • The idea comes from patchkit after I found this fascinating small tool.
  • More features will be added in future.
  • This project is not thoroughly tested, and as you know, patching PE files can sometimes be clumsy and error-prone, so ALWAYS keep a copy of backup before applying any patch to the binary.

pepatch's People

Contributors

marche147 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pepatch's Issues

Running example error?

I want to know which version of python do you use? This is my problem:
python3 running result:

python3 ../patch.py hello.exe hello.py
Traceback (most recent call last):
File "/home/zhangzheng/pepatch/example/../patch.py", line 7, in
from core.patcher import Patcher
File "/home/zhangzheng/pepatch/core/init.py", line 2, in
from binary import *
ModuleNotFoundError: No module named 'binary'

python2 running result:

python2 ../patch.py hello.exe hello.py
Traceback (most recent call last):
File "../patch.py", line 7, in
from core.patcher import Patcher
File "/home/zhangzheng/pepatch/core/init.py", line 2, in
from binary import *
File "/home/zhangzheng/pepatch/core/binary.py", line 2, in
from dependency import pefile
File "/home/zhangzheng/pepatch/dependency/init.py", line 2, in
from pefile import *
File "/home/zhangzheng/pepatch/dependency/pefile.py", line 23, in
from builtins import bytes
ImportError: No module named builtins

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.