Skip to content

a tool that shows which lines of code are executing in a binary in realtime

License

Notifications You must be signed in to change notification settings

charles-l/binary-xray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

binary xray

Peek inside a binary to see which lines are executing in realtime.

Works on Linux with binaries built in debug mode.

out.mp4

building

Install dependencies

apt install binutils-dev

Clone and build dynamorio. More instructions on their website.

git clone --recursive https://github.com/DynamoRIO/dynamorio.git
cd dynamorio && mkdir build && cd build
cmake ..
make -j

Build bx.

git clone https://github.com/charles-l/binary-xray
cd binary-xray
zig build -Ddynamorio-build=/path/to/dynamorio/build/

usage

# instrument the binary
drrun -c zig-out/lib/libbx.so function_to_instrument -- path/to/executable

# open the gui to observe which lines are executing
./zig-out/bin/bxgui

About

a tool that shows which lines of code are executing in a binary in realtime

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published