Skip to content

ghost82/reverse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reverse

Reverse engineering for x86 binaries. Generate a more readable code (pseudo-C) with colored syntax.

Supported formats : ELF, PE.

The Makefile is used only for checking tests.

Requirements

capstone
python3
python-capstone (>= 3.0.1)
python-pyelftools
https://github.com/simonzack/pefile-py3k
terminal with 256 colors (if not use the option `--nocolor`)

For Python binding of Capstone engine, you can install it from PyPi, like followings:

sudo pip3 install capstone

Custom colors

At the first run, reverse.py creates a new file custom_colors.py with default values. Here you can set your own colors.

Edit with vim

$ ./reverse tests/dowhile1.bin --vim
You can now run : vim dowhile1.bin.rev -S dowhile1.bin.vim

Example

$ ./reverse.py tests/nestedloop1.bin

reverse

By opening d3/index.html (with the option --graph) you will be able to see the flow graph :

graph

About

Reverse engineering for x86 binaries. Generation of pseudo-C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 76.5%
  • C 18.4%
  • HTML 3.0%
  • Shell 1.5%
  • Makefile 0.6%