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

11 lines
289 B
Bash
Raw Normal View History

2021-08-23 01:13:54 +02: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