Skip to content
/ Qdb Public

A multi-architecture and cross-platform debugger baked by Qiling Framework

Notifications You must be signed in to change notification settings

ucgJhe/Qdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qiling Debugger

Introduction

A multi-architecture and cross-platform debugger baked by Qiling Framework

Installation

pip3 install qiling

git clone git@github.com:ucgJhe/Qdb.git

How to run example.py

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

Usage

# simple setup
from qdb import Qdb

Qdb(["src/mips32el_hello"], "/usr/mipsel-linux-gnu", rr=True).interactive()

1. commandline-based user interface

  • use command start and paused at the entry point

2. step-by-step execution

  • use command step or s to execute one instruction at a time

3. breakpoints

  • use command breakpoint or b to setup a breakpoint, and continue process with continue or c

4. dynamic memory examination

  • use command examine or x to read data from memory

5. record and replay

  • use command backward or p to step backward from current location
  • Note:
      1. the address you want to step backward on it must be step-over before
      1. make sure run Qdb with option rr=True like the example above

Supported architecture for now

  • MIPS32
  • ARM/THUMB
  • MIPS64
  • ARM64
  • x86/x86-64

P.S. tested on Ubuntu 20.04 only

About

A multi-architecture and cross-platform debugger baked by Qiling Framework

Topics

Resources

Stars

Watchers

Forks

Languages