Skip to content

Commit

Permalink
SUID perm check
Browse files Browse the repository at this point in the history
Alterations made rebootuser#34 (comment)
  • Loading branch information
rebootuser authored Apr 16, 2019
1 parent ddfd743 commit ab1b72a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LinEnum.sh
Original file line number Diff line number Diff line change
@@ -1,6 1,6 @@
#!/bin/bash
#A script to enumerate local information from a Linux host
version="version 0.95"
version="version 0.96"
#@rebootuser

#help function
Expand Down Expand Up @@ -844,14 844,14 @@ if [ "$intsuid" ]; then
fi

#lists word-writable suid files
wwsuid=`find / -perm -4007 -type f -exec ls -la {} 2>/dev/null \;`
wwsuid=`find / -perm -4002 -type f -exec ls -la {} 2>/dev/null \;`
if [ "$wwsuid" ]; then
echo -e "\e[00;33m[ ] World-writable SUID files:\e[00m\n$wwsuid"
echo -e "\n"
fi

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

0 comments on commit ab1b72a

Please sign in to comment.