A multi-architecture and cross-platform debugger baked by Qiling Framework
pip3 install qiling
git clone git@github.com:ucgJhe/Qdb.git
make sure you install gcc-multilib-mipsel-linux-gnu
gcc-multilib-arm-linux-gnueabihf
and make binary in src directory cd src; make
just uncomment the one you want to test in example.py and run it with python3 example.py
# simple setup
from qdb import Qdb
Qdb(["src/mips32el_hello"], "/usr/mipsel-linux-gnu", rr=True).interactive()
- use command
start
and paused at the entry point
- use command
step
ors
to execute one instruction at a time
- use command
breakpoint
orb
to setup a breakpoint, and continue process withcontinue
orc
- use command
examine
orx
to read data from memory
- use command
backward
orp
to step backward from current location - Note:
-
- the address you want to step backward on it must be step-over before
-
- make sure run Qdb with option
rr=True
like the example above
- make sure run Qdb with option
-
- MIPS32
- ARM/THUMB
- MIPS64
- ARM64
- x86/x86-64