pwntools
CTF/exploit-development framework.
KaliParrotpassive
pkg: python3-pwntools
pwntools is a Python library for rapid exploit dev — process/socket I/O, shellcode, ROP, packing and more.
Syntax
from pwn import *
Example
p = process("./vuln"); p.sendline(payload)
Spawns the target and sends a crafted payload from a script.
Advantages
- Massively speeds exploit dev
- Batteries-included
Disadvantages
- Python + exploit knowledge
- Library, not a CLI
Tags
#exploit-dev#ctf#python
Official docs: pwntools ↗
Related commands
Frequently asked questions
What is pwntools used for?
pwntools is a Python library for rapid exploit dev — process/socket I/O, shellcode, ROP, packing and more.
What is an example pwntools command?
A common example is: p = process("./vuln"); p.sendline(payload) — Spawns the target and sends a crafted payload from a script.
Is pwntools part of Kali Linux?
Yes. pwntools ships with Kali Linux (and Parrot OS). If missing, install it with: sudo apt install python3-pwntools.
What category of security tool is pwntools?
pwntools is a Reverse Engineering tool with a passive-risk profile when run against a live target.
Try recon tools live
Run real scans against a domain you control, stage by stage.