killchain-compendium/post exploitation/priv_esc/suid/find_suids.sh

11 lines
289 B
Bash
Executable File

#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