A customized debug tool designing to automatic attach the target process in either remote or pwntools contexts.
Please install the following package in remote environment.
apt update
apt install -y gdbserver strace
Please install the following package in local environment.
apt update
apt install -y gdb-multiarch
-
Add this directory to
$PATH
. -
Run
gdbinit.py
in your intended workspace to initial environment. -
Run
debug-server
Usage: debug-server [-hmsvn] [-e CMD] [-p PID] [-o CMD] General: -e CMD service argv -p PID attach to PID -o CMD get pid by popen -h print help message -m enable multi-service -s halt at entry point -v show debug information -n disable address space randomization -u do not limit memory -6 ipv6 mode
-
Use
gdbpwn.py
to connect to the target IP. -
Use
exp.py
to connect to the target IP to start the target and sendattach instruction
.
debug-server-demo.mp4
- Cross-platform
- More automatic
- Streamline the debugging process for reverse engineering (Feature: HALT_AT_ENTRY_POINT)