Gallopsled / Gallopsled/pwntools

Implementing a Feature to easily set GDB breakpoint on Rop.Chain

Open
#1,917 5 comments 0 reactions 0 assignees View on GitHub
feature rop
Dominant language
Python
Stars
13.7k
Forks
1.9k
Avg merge
6d 23h
Merged PRs (30d)
3

Description

This feature should enable user to easily set a gdb breakpoint in a `ROP.chain()` from a pwntools script.

Perhaps it could be implemented under the `rop` module.

Examples of possible successful implementation:

````py
binsh = next(libc.search(b'/bin/sh'))

rop = ROP(elf)
rop.raw("A"*72)
rop.system(binsh)

p.sendline(rop.chain())
gdb.attach(io, gdbscript='b* ' + rop[0])
```

Which would set a breakpoint at the start of the rop.chain.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.