mirror of
https://github.com/lifting-bits/remill
synced 2026-06-21 13:56:07 +00:00
8c0c4b5caf9395e35e2bccc5504ee89218720ef6
mcsema2
Setup
./bootstrap.sh
Example
First, extract the control-flow graph information from your binary.
./scripts/ida_get_cfg.sh /path/to/binary
This script will tell you where it puts the CFG. For example, it might output something
like /tmp/tmp.E3RWcczulG.cfg.
Lets assume that /path/to/binary is a 32-bit ELF file. Now you can do the following:
./build/cfg_to_bc --arch=x86 --os=linux --bc_out=/tmp/out.bc --cfg=/tmp/tmp.E3RWcczulG.cfg
For 64-bit x86 programs, specificy --arch=amd64.
Great! Now you have a massive bitcode file. Enjoy!
Description
Languages
C++
70.7%
Assembly
26%
CMake
1.1%
C
1%
Python
0.7%
Other
0.3%