This commit is contained in:
Carlos Polop
2021-10-24 12:03:19 +01:00
committed by GitHub

View File

@@ -6,7 +6,7 @@ ADVISORY="This script should be used for authorized penetration testing and/or e
###########################################
#-------) Checks pre-everything (---------#
###########################################
if [ "$(/usr/bin/id -u)" -eq "0" ]; then
if ([ -f /usr/bin/id ] && [ "$(/usr/bin/id -u)" -eq "0" ]) || [ "`whoami 2>/dev/null`" = "root" ]; then
IAMROOT="1"
MAXPATH_FIND_W="3"
else