Skip to main content

PyX64Dbg

Python 3.10+ Platform License

PyX64Dbg is a Python-based debugger for x86-64 Linux binaries.

PyX64Dbg utilizes the Linux ptrace system call and the /proc filesystem (procfs) to trace and introspect ELF processes. These low-level operating system primitives are abstracted into an intuitive Python object model, enabling direct manipulation of process memory, CPU registers, and execution flow.

The tool features through three primary interfaces: a Python API designed for automated reverse engineering and binary analysis, a Graphical User Interface (GUI) for visual debugging, and a robust IPython-based CLI for debugging from the terminal.

Key Features

  • Python API: Automate reverse engineering, exploit development, or testing using a clean, object-oriented interface. Unlike GDB, PyX64Dbg acts as a standard Python library you can import and use anywhere.
  • Graphical Interface (GUI): Built with PySide6, featuring disassembly views, memory watches, register panels, and an embedded interactive terminal.
  • Command Line Interface (CLI): An interactive IPython REPL that supports live Python syntax, auto-completion, and inline evaluation.
  • Advanced Target Support: Native handling of PIE (Position Independent Executables), ASLR, shared libraries (ld.so), and dynamic symbols.
  • C-Like Type System: A custom extension providing native types (Int32, UInt64, Float80, etc.) that strictly follow C promotion, overflow, and truncation rules.
  • Extended Registers (AVX/SSE): Supports CPU xstate, including XMM, YMM, and FPU (st) vector registers. The API allows you to seamlessly treat vector data as a C-style union across all possible integer and floating-point array representations.

Prerequisites

  • Operating System: Linux (x86-64 architecture only)
  • Python: 3.10 or later
  • C++ Compiler: A C++20 compatible compiler (e.g., g++ or clang) and Python development headers are required to compile the ptrace and numeric type extensions during installation.

Installation

pip install pyx64dbg

From Source (Development)

Clone the repository and install it in editable mode:

git clone https://github.com/yoav-shamay/pyx64dbg.git
cd pyx64dbg
pip install -e .

Usage

Graphical Interface (GUI)

Start the visual debugger (requires a desktop environment):

pyx64dbg-gui

Tip: The full IPython CLI is embedded directly into the GUI and is available via the "Interactive Console" tab at the bottom.

Command Line Interface (CLI)

Launch the interactive IPython console:

pyx64dbg [/path/to/binary]

Once inside, simply type help to see a list of available commands and aliases (e.g., run, step, bps, dis).

Python API

PyX64Dbg is built to be scripted. You can easily interact with binaries directly from Python.
See example.py for an example on how to use the debugger.

Limitations

  • Supported exclusively on Linux ELF binaries running on x86-64.
  • Relies on the ptrace system call and the /proc filesystem. It will not function in hardened environments where these features are disabled.

Testing

The repository includes a suite of integration tests that run against provided pre-compiled C binaries to verify register states, memory reading, and edge cases.

To run the tests:

pytest test/

Note: If you wish to rebuild the test executables from source, a Makefile is provided in test/executables/. Rebuilding may cause certain tests to fail if the compiler generates different instruction offsets.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for pyx64dbg 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyx64dbg 0.1.5
File Size Uploaded Provenance Actions
pyx64dbg-0.1.5.tar.gz 169.5 kB Without provenance Details for pyx64dbg-0.1.5.tar.gz

Release files / pyx64dbg-0.1.5.tar.gz

Download URL pyx64dbg-0.1.5.tar.gz
Size 169.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3c3e6d537332d0e79af721ca5a8989ea4a864acd8d76d7444b8ec220af98eb9b
BLAKE2b-256 checksum
How to use checksums
84e55ee29811fbb3cb661f131df8151c3174d8c59784a8c90c2cf4e25b4e0dce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for pyx64dbg 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page