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
Shell bug-bountybugbountybugbounty-tooldnshackingnucleiosintpenetration-testingpentestpentest-toolpentestingreconreconnaissancescannersecuritysecurity-toolssubdomainsubdomain-enumerationvulnerabilities
Naabu timeout added
six2dezb411c8ea2495
diff --git a/reconftw.sh b/reconftw.shindex d1087c0..17c8e07 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -599,7 +599,10 @@ function webprobe_simple(){function webprobe_full(){if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$WEBPROBEFULL" = true ]; thenstart_func "Http probing non standard ports"- cat subdomains/subdomains.txt | naabu -p $UNCOMMON_PORTS_WEB -o .tmp/nmap_uncommonweb.txt &>>"$LOGFILE" && uncommon_ports_checked=$(cat .tmp/nmap_uncommonweb.txt | cut -d ':' -f2 | sort -u | sed -e 'H;${x;s/\n/,/g;s/^,//;p;};d')++ timeout_secs=$(($(cat subdomains/subdomains.txt | wc -l)*5+10))++ cat subdomains/subdomains.txt | timeout $timeout_secs naabu -p $UNCOMMON_PORTS_WEB -o .tmp/nmap_uncommonweb.txt &>>"$LOGFILE" && uncommon_ports_checked=$(cat .tmp/nmap_uncommonweb.txt | cut -d ':' -f2 | sort -u | sed -e 'H;${x;s/\n/,/g;s/^,//;p;};d')if [ -n "$uncommon_ports_checked" ]; thencat subdomains/subdomains.txt | httpx -ports $uncommon_ports_checked -follow-host-redirects -random-agent -status-code -threads $HTTPX_UNCOMMONPORTS_THREADS -timeout 10 -silent -retries 2 -no-color | cut -d ' ' -f1 | grep ".$domain" | anew -q .tmp/probed_uncommon_ports_tmp.txtfi@@ -1410,6 +1413,20 @@ function resolvers_update(){fi}+function ipcidr_detection(){+ if [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; then+ if [[ $1 =~ /[0-9]+$ ]]; then+ prips $1 | hakrevdns+ prips $1 | gdn+ # ./test.sh 199.120.48.0/24 | cut -d' ' -f3 | unfurl -u domains | sed 's/\.$//' | awk -F\. '{print $(NF-1) FS $NF}' | sort -u+ else+ echo $1 | hakrevdns+ echo $1 | gdn+ # ./test.sh 199.120.48.0/24 | cut -d' ' -f3 | unfurl -u domains | sed 's/\.$//' | awk -F\. '{print $(NF-1) FS $NF}' | sort -u+ fi+ fi+}+function start(){global_start=$(date +%s)@@ -1423,6 +1440,8 @@ function start(){echo "Recon succesfully started on $domain" | $NOTIFYtools_installed+# ipcidr_detection $domain+if [ -z "$domain" ]; thenif [ -n "$list" ]; thenif [ -z "$domain" ]; then