pwntools is a CTF framework and exploit development library. Written in Python, it is designed for rapid prototyping and development, and intended to make exploit writing as simple as possible.

The primary location for this documentation is at, which uses readthedocs. It comes in three primary flavors:

Getting Started

Module Index

Each of the pwntools modules is documented here.


The bytes vs text distinction is so important that it even made it to this main page. See the pwntools-tutorial repo for the latest tutorial finally explaining the difference once and for all (hopefully).

Indices and tables