From 2a70c0f099f81f565cfbb2dc13fd9b63820fea5f Mon Sep 17 00:00:00 2001 From: Ali Kaba <5981322+alibkaba@users.noreply.github.com> Date: Mon, 5 Mar 2018 00:22:03 -0500 Subject: [PATCH] fixed line 178 - 182. fixed line 178 - 182. --- linuxprivchecker.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/linuxprivchecker.sh b/linuxprivchecker.sh index f870476..a38eeee 100755 --- a/linuxprivchecker.sh +++ b/linuxprivchecker.sh @@ -170,12 +170,15 @@ filePERMISSIONS(){ cmdRESPONSE "find / \( -wholename '/home/homedir*' -prune \) -o \( -type d -perm -o+w \) -exec ls -ld '{}' ';' | grep root"; systemNAME="World Writeables Directories for non-root Users"; - cmdRESPONSE "find / \( -wholename '/home/homedir*' -prune \) -o \( -type d -perm -0002 \) -exec ls -ld '{}' ';' | grep -v root "; + cmdRESPONSE "find / \( -wholename '/home/homedir*' -prune \) -o \( -type d -perm -0002 \) -exec ls -ld '{}' ';' | grep -v root"; systemNAME="World Writeables Files"; - cmdRESPONSE "find / \( -wholename '/home/homedir/*' -prune -o -wholename '/proc/*' -prune \) -o \( -type f -perm -0 002 \) -exec ls -l '{}' ';'"; + cmdRESPONSE "find / \( -wholename '/home/homedir/*' -prune -o -wholename '/proc/*' -prune \) -o \( -type f -perm -0002 \) -exec ls -l '{}' ';'"; systemNAME="SUID/GUID Files and Directories"; + cmdRESPONSE "find / \( -perm -2000 -o -perm -4000 \) -exec ls -ld {} \; 2>/dev/null"; + + systemNAME="Checking if root's home folder is accessible"; cmdRESPONSE "ls -ahlR /root"; systemNAME="Configuration Files Containing Keyword 'password'";