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
Added dynamic gowitness timeout
six2dez4fdd28f57b75
diff --git a/reconftw.cfg b/reconftw.cfgindex 2b33e24..28d9fb6 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -192,6 +192,7 @@ FFUF_MAXTIME=900 # SecondsHTTPX_TIMEOUT=10 # SecondsHTTPX_UNCOMMONPORTS_TIMEOUT=10 # SecondsPERMUTATIONS_LIMIT=21474836480 # Bytes, default is 20 GB+GOWITNESS_TIMEOUT_PER_SITE=20 # Seconds# listsfuzz_wordlist=${tools}/fuzz_wordlist.txtdiff --git a/reconftw.sh b/reconftw.shindex 744c3d4..c328f65 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -988,10 +988,14 @@ function screenshot(){if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$WEBSCREENSHOT" = true ]; thenstart_func ${FUNCNAME[0]} "Web Screenshots"[ ! -s ".tmp/webs_all.txt" ] && cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q .tmp/webs_all.txt++ num_lines=$(wc -l < .tmp/webs_all.txt)+ dynamic_gowitness_timeout=$(expr $num_lines \* $GOWITNESS_TIMEOUT_PER_SITE)+if [ ! "$AXIOM" = true ]; then- [ -s ".tmp/webs_all.txt" ] && gowitness file -f .tmp/webs_all.txt -t $GOWITNESS_THREADS $GOWITNESS_FLAGS 2>>"$LOGFILE"+ [ -s ".tmp/webs_all.txt" ] && timeout -k 1m ${dynamic_gowitness_timeout}s gowitness file -f .tmp/webs_all.txt -t $GOWITNESS_THREADS $GOWITNESS_FLAGS -o screenshots 2>>"$LOGFILE"else- axiom-scan .tmp/webs_all.txt -m gowitness -t $GOWITNESS_THREADS $GOWITNESS_FLAGS -o screenshots $AXIOM_EXTRA_ARGS 2>>"$LOGFILE" >/dev/null+ timeout -k 1m ${dynamic_gowitness_timeout}s axiom-scan .tmp/webs_all.txt -m gowitness -t $GOWITNESS_THREADS $GOWITNESS_FLAGS -o screenshots $AXIOM_EXTRA_ARGS 2>>"$LOGFILE" >/dev/nullfiend_func "Results are saved in $domain/screenshots folder" ${FUNCNAME[0]}else