Skip to content

Repository files navigation

Debug Server

A customized debug tool designing to automatic attach the target process in either remote or pwntools contexts.

Architecture

Requirements

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

Usage

  1. Add this directory to $PATH.

  2. Run gdbinit.py in your intended workspace to initial environment.

  3. 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
  4. Use gdbpwn.py to connect to the target IP.

  5. Use exp.py to connect to the target IP to start the target and send attach instruction.

debug-server-demo.mp4

Features

  • Cross-platform
  • More automatic
  • Streamline the debugging process for reverse engineering (Feature: HALT_AT_ENTRY_POINT)

About

A customized debug tool

Resources

Stars

21 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages