GTFOBins
Table of Contents
A curated reference of Unix/Linux binaries that can be exploited for privilege escalation, file read/write, reverse shells, or to bypass restrictions. Used to convert enumeration findings (SUID binaries, sudo privileges) into actual exploitation.
Related: Linux Privilege Escalation LinPEAS
Description
GTFOBins documents legitimate binaries and how to misuse their functions when running with elevated permissions (via SUID, SGID, or sudo). Not an exploit framework — a reference guide mapping enumeration findings to exploitation techniques.
Common Workflow
During post-exploitation, you'll find interesting binaries or sudo privileges via LinPEAS or manual checks. Cross-reference them on GTFOBins:
- LinPEAS reports: `vim` has SUID bit set, owned by root
- Visit GTFOBins and search `vim`
- Find the SUID section — copy the payload and execute
The site organizes exploits by category:
- SUID/SGID abuse
- Sudo without password
- File read/write
- Shell spawning
- Capability exploitation
Tips
- Check the site early during enumeration — know what you're looking for
- SUID binaries are the quickest wins — look for common ones: `vim`, `find`, `less`, `nano`, `ed`, `perl`, `python`
- Sudo privileges (`sudo -l`) are often overlooked but frequently exploitable
- File write exploits let you modify config files or shell rc files for persistence
- Some binaries require specific conditions (e.g., running without arguments) — read the full payload before executing
- Bookmark the site or have it available offline — speeds up CTF work