What problem does it solve?
It helps you exploit format-string vulnerabilities by turning attacker-controlled format strings into deterministic stack reads and arbitrary memory writes, enabling control-flow and information-leak capabilities.
Core Features & Use Cases
- Memory disclosure (stack + pointers): Leaks stack values and dereferences attacker-controlled pointers to read canary/PIE/libc/heap-relevant data.
- Arbitrary write using %n variants: Builds payloads that write precise values through
%n, %hn, and %hhn, including handling 64-bit null-byte constraints by placing addresses after the format specifiers.
- Practical exploitation workflows: Provides pwntools automation approaches such as
fmtstr_payload and FmtStr, plus decision guidance for FORTIFY_SOURCE bypass and blind (remote) format string exploitation.
Quick Start
Ask the AI to generate an offset-finding and write-primitive plan for a vulnerable printf(user_input) target on your architecture, then produce a pwntools fmtstr_payload example for overwriting a chosen GOT entry.