ocd
ocd copied to clipboard
ocd - ocd c decompiler
ocd - ocd C decompiler
ocd is a C decompiler written in Python, currently supporting decompilation of Linux programs compiled for the x64 architecture.
The decompiler tries to infer the program structure, performing control and data flow analysis.
If you'd like to learn how it works, check out my article on how decompilers work.
More in-depth documentation is available in the doc/ocd.md file.
Quick start
Run ./ocd program to decompile program (e.g. ./ocd /usr/bin/yes).
There are some test programs in the tests/ directory. To check them out, do cd tests; make, then for example run ./ocd tests/test_ack.
Run ./ocd --help to get more options.
Requirements
- Python 3
- objdump
Notes
- ocd uses Immunity libdisassembly v2.0
Example
|
|
| Original code | ocd output |