Gallopsled / Gallopsled/pwntools
Implementing a Feature to easily set GDB breakpoint on Rop.Chain
Open
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
Assessment
This issue has not been assessed yet.