Offensive
Intermediate
Premium
Find all SUID binaries on the system for privilege escalation opportunities
Find all SUID binaries on the system for privilege escalation opportunities
Linux CLI / Privilege Escalation
Premium content locked
You can preview the command metadata. Full explanation, examples, and lab-style details are available to premium subscribers.
View premium optionsCommand
find / -perm -4000 -type f 2>/dev/null
Syntax
find / -perm -4000 -type f 2>/dev/null
Use case
Post-exploitation on a Linux system when running as a low-privilege user. SUID binaries running as root can often be abused to escalate privileges.
Explanation
Locates files with the SUID bit set: • / → Search from root directory • -perm -4000 → Match files with SUID bit set • -type f → Files only (not directories) • 2>/dev/null → Suppress permission errors Compare results against GTFOB...
linux
kali
parrot
suid
privesc
gtfobins
linux
post-exploitation
Related
Offensive
Beginner
Premium
List commands the current user can run with sudo — key privesc enumeration step
List commands the current user can run with sudo — key privesc enumeration step
sudo -l
sudo
privesc
gtfobins
linux
enumeration
Linux CLI / Privilege Escalation
Open