Skip to content

Commit

Permalink
sgid permission updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rebootuser committed Apr 16, 2019
1 parent ab1b72a commit 7981dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LinEnum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -877,14 +877,14 @@ if [ "$intsgid" ]; then
fi

#lists world-writable sgid files
wwsgid=`find / -perm -2007 -type f -exec ls -la {} 2>/dev/null \;`
wwsgid=`find / -perm -2002 -type f -exec ls -la {} 2>/dev/null \;`
if [ "$wwsgid" ]; then
echo -e "\e[00;33m[+] World-writable SGID files:\e[00m\n$wwsgid"
echo -e "\n"
fi

#lists world-writable sgid files owned by root
wwsgidrt=`find / -uid 0 -perm -2007 -type f -exec ls -la {} 2>/dev/null \;`
wwsgidrt=`find / -uid 0 -perm -2002 -type f -exec ls -la {} 2>/dev/null \;`
if [ "$wwsgidrt" ]; then
echo -e "\e[00;33m[+] World-writable SGID files owned by root:\e[00m\n$wwsgidrt"
echo -e "\n"
Expand Down

0 comments on commit 7981dca

Please sign in to comment.