skipped 145 lines 146 146 # File/Directory Privs 147 147 print("[*] ENUMERATING FILE AND DIRECTORY PERMISSIONS/CONTENTS...\n") 148 148 149 - fdPerms = {"WWDIRSROOT":{"cmd":"find / \( -wholename ' / home / homedir * ' - prune \ ) - o \ ( - type d -perm -0002 \) -exec ls -ld '{}' ';' 2>/dev/null | grep root", "msg":"World Writeable Directories for User/Group 'Root'"}, 150 - "WWDIRS":{"cmd":"find / \( -wholename ' / home / homedir * ' - prune \ ) - o \ ( - type d -perm -0002 \) -exec ls -ld '{}' ';' 2>/dev/null | grep -v root", "msg":"World Writeable Directories for Users other than Root"}, 151 - "WWFILES":{"cmd":"find / \( -wholename '/home / homedir / * ' - prune - o - wholename ' / proc/*' -prune \) -o \( -type f -perm -0002 \) -exec ls -l '{}' ';' 2>/dev/null", "msg":"World Writable Files"}, 149 + fdPerms = {"WWDIRSROOT":{"cmd":"find / \( -type d -perm -o + w \) -exec ls -ld '{}' ';' 2>/dev/null | grep root", "msg":"World Writeable Directories for User/Group 'Root'"}, 150 + "WWDIRS":{"cmd":"find / \( -type d -perm -o + w \) -exec ls -ld '{}' ';' 2>/dev/null | grep -v root", "msg":"World Writeable Directories for Users other than Root"}, 151 + "WWFILES":{"cmd":"find / \( -wholename '/proc/*' -prune \) -o \( -type f -perm -o + w \) -exec ls -l '{}' ';' 2>/dev/null", "msg":"World Writable Files"}, 152 152 "SUID":{"cmd":"find / \( -perm -2000 -o -perm -4000 \) -exec ls -ld {} \; 2>/dev/null", "msg":"SUID/SGID Files and Directories"}, 153 153 "ROOTHOME":{"cmd":"ls -ahlR /root 2>/dev/null", "msg":"Checking if root's home folder is accessible"} 154 154 } skipped 103 lines