Exploiting SUID and SGID Binaries

Command:

find / -user root -perm -4000 -exec ls -ldb {} \; 2>/dev/null

Description: Find binaries with the SUID bit set.

Command:

find / -user root -perm -6000 -exec ls -ldb {} \; 2>/dev/null

Description: Find binaries with the SETGID bit se

Last updated