killchain-compendium/Post Exploitation/Privilege Escalation/suid/find_suids.sh

11 lines
289 B
Bash
Raw Normal View History

2022-11-11 01:15:07 +01:00
#find / -perm -u=s -type f 2>/dev/null
echo "================suid set================"
find / -perm /4000 2>/dev/null
echo "================sguid set================"
find / -perm /2000 2>/dev/null
echo "================suid & sguid set================"
find / -perm /6000 2>/dev/null