Skip to content

reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities

Sudo fix

six2deza9cbff4d5bdf
diff --git a/reconftw.sh b/reconftw.sh
index ff3bf10..990bffa 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1892,6 +1892,13 @@ function start(){
else
NOTIFY=""
fi
+
+ if [[ $(id -u | grep -o '^0$') == "0" ]]; then
+ SUDO=" "
+ else
+ SUDO="sudo"
+ fi
+
printf "\n${bgreen}#######################################################################${reset}"
notification "Recon succesfully started on ${domain}" good
[ "$SOFT_NOTIFICATION" = true ] && echo "Recon succesfully started on ${domain}" | notify -silent
@@ -2068,6 +2075,12 @@ function multi_osint(){
NOTIFY=""
fi
+ if [[ $(id -u | grep -o '^0$') == "0" ]]; then
+ SUDO=" "
+ else
+ SUDO="sudo"
+ fi
+
#[[ -n "$domain" ]] && ipcidr_target $domain
if [ -s "$list" ]; then
@@ -2153,6 +2166,12 @@ function multi_recon(){
NOTIFY=""
fi
+ if [[ $(id -u | grep -o '^0$') == "0" ]]; then
+ SUDO=" "
+ else
+ SUDO="sudo"
+ fi
+
#[[ -n "$domain" ]] && ipcidr_target $domain
if [ -s "$list" ]; then