pwntools

Python framework for writing exploits and CTF solutions

brewmacoslinux
Try with needOr install directly
Source

About

CTF framework used by Gallopsled in every CTF

Commands

pwn

Examples

Create a new exploit template for a binary$ pwn template ./vulnerable_binary > exploit.py
Open an interactive shell to a local process with pwntools features$ python3 -c "from pwn import *; p = process('./binary'); p.interactive()"
Connect to a remote service and send/receive data$ python3 -c "from pwn import *; r = remote('example.com', 1337); r.sendline(b'payload'); print(r.recvall())"