Skip to main content

Package to enable debugging with Radare2 in pwntools

Project description

pwntools-dbg-r2

A pip package that lets pwntools use r2 as a debugger

Install

pip install pwntools-dbg-r2

How to use

New instance everytime

from pwn import *
from r2dbg import *
p = r2dbg('/bin/ls')
...

Existing r2 instance

  1. Run . `!r2-session <port>` inside the r2 instance
  2. Specify r2port when debugging:
from pwn import *
from r2dbg import *
p = r2dbg('/bin/ls', r2port=<port>)
...

Options

Same options as pwnlib.gdb.debug

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pwntools-dbg-r2, version 0.1.6
Filename, size File type Python version Upload date Hashes
Filename, size pwntools_dbg_r2-0.1.6-py2-none-any.whl (5.2 kB) File type Wheel Python version py2 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page