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
fix: prevent duplicate nuclei scans
six2dez3a86b92c0387
diff --git a/modules/web.sh b/modules/web.shindex bc5b7c1..655d15f 100644--- a/modules/web.sh+++ b/modules/web.sh@@ -637,9 +637,10 @@ function nuclei_check() {cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q webs/webs_all.txtfi- # Combine url_extract_nodupes.txt, subdomains.txt, and webs_all.txt into webs_subs.txt if it doesn't exist+ # Combine webs_all.txt targets (with protocol) - avoid duplicate scans+ # Note: subdomains without protocol would cause duplicate nuclei scansif [[ ! -s ".tmp/webs_subs.txt" ]]; then- cat subdomains/subdomains.txt webs/webs_all.txt 2>>"$LOGFILE" >.tmp/webs_subs.txt+ cat webs/webs_all.txt 2>>"$LOGFILE" | sort -u >.tmp/webs_subs.txtfi# Prepare WAF-aware lists@@ -755,8 +756,8 @@ function graphql_scan() {if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $GRAPHQL_CHECK == true ]]; thenstart_func "${FUNCNAME[0]}" "GraphQL detection"- # Prepare input- [[ ! -s .tmp/webs_subs.txt ]] && cat subdomains/subdomains.txt webs/webs_all.txt 2>>"$LOGFILE" >.tmp/webs_subs.txt+ # Prepare input - use webs with protocol only+ [[ ! -s .tmp/webs_subs.txt ]] && cat webs/webs_all.txt 2>>"$LOGFILE" | sort -u >.tmp/webs_subs.txtmaybe_update_nucleiif [[ -s .tmp/webs_subs.txt ]]; thennuclei -l .tmp/webs_subs.txt -tags graphql -nh -rl "$NUCLEI_RATELIMIT" -silent -retries 2 -t ${NUCLEI_TEMPLATES_PATH} -j -o nuclei_output/graphql_json.txt 2>>"$LOGFILE" >/dev/null