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 file paths in fuzzing and URL extraction functions, and update notification for uncommon ports
six2dez2a3aad69dbf0
diff --git a/reconftw.sh b/reconftw.shindex 62502c9..620ef8f 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -3661,7 +3661,7 @@ function fuzz() {fiend_func "Results are saved in $domain/fuzzing/*subdomain*.txt" ${FUNCNAME[0]}else- end_func "No $domain/web/webs.txts file found, fuzzing skipped " ${FUNCNAME[0]}+ end_func "No $domain/webs/webs.txts file found, fuzzing skipped " ${FUNCNAME[0]}fielse@@ -4005,7 +4005,7 @@ function url_gf() {fielse- end_func "No webs/webs/url_extract.txt file found, URL_GF check skipped." "${FUNCNAME[0]}"+ end_func "No webs/url_extract.txt file found, URL_GF check skipped." "${FUNCNAME[0]}"returnfi@@ -4763,7 +4763,7 @@ function crlf_checks() {# Handle cases where CRLF_CHECKS is false, no vulnerable URLs, or already processedif [[ $CRLF_CHECKS == false ]]; thenpt_msg_warn "${FUNCNAME[0]} skipped due to configuration"- elif [[ ! -s "gf/crlf.txt" ]]; then+ elif [[ ! -s "vulns/crlf.txt" ]]; thenpt_msg_warn "${FUNCNAME[0]} skipped: no candidate URLs for CRLF"elsept_msg_warn "${FUNCNAME[0]} already processed. To force, delete ${called_fn_dir}/.${FUNCNAME[0]}"@@ -4956,7 +4956,7 @@ function test_ssl() {# Run testssl.shprintf "${yellow}\n[$(date +'%Y-%m-%d %H:%M:%S')] Running: SSL Test with testssl.sh${reset}\n\n"- "${tools}/testssl.sh/testssl.sh" --quiet --color 0 -U -iL "hosts/ips.txt" 2>>"$LOGFILE" >"vulns/testssl.txt"+ "${tools}/testssl.sh/testssl.sh" --quiet --color 0 -U -iL "$dir/hosts/ips.txt" 2>>"$LOGFILE" >"vulns/testssl.txt"end_func "Results are saved in vulns/testssl.txt" "${FUNCNAME[0]}"@@ -4964,7 +4964,7 @@ function test_ssl() {# Handle cases where TEST_SSL is false, no vulnerable URLs, or already processedif [[ $TEST_SSL == false ]]; thenpt_msg_warn "${FUNCNAME[0]} skipped due to configuration"- elif [[ ! -s "gf/testssl.txt" ]]; then+ elif [[ ! -s "vulns/testssl.txt" ]]; thenpt_msg_warn "${FUNCNAME[0]} skipped: no candidate targets for SSL tests"elsept_msg_warn "${FUNCNAME[0]} already processed. To force, delete ${called_fn_dir}/.${FUNCNAME[0]}"@@ -6425,10 +6425,9 @@ function multi_recon() {NUMOFLINES_subs_total=$(find . -type f -name 'subdomains.txt' -exec cat {} + | anew subdomains/subdomains.txt | sed '/^$/d' | wc -l)NUMOFLINES_subtko_total=$(find . -type f -name 'takeover.txt' -exec cat {} + | anew webs/takeover.txt | sed '/^$/d' | wc -l)NUMOFLINES_webs_total=$(find . -type f -name 'webs.txt' -exec cat {} + | anew webs/webs.txt | sed '/^$/d' | wc -l)- NUMOFLINES_webs_total=$(find . -type f -name 'webs_uncommon_ports.txt' -exec cat {} + | anew webs/webs_uncommon_ports.txt | sed '/^$/d' | wc -l)+ NUMOFLINES_webs_total_uncommon=$(find . -type f -name 'webs_uncommon_ports.txt' -exec cat {} + | anew webs/webs_uncommon_ports.txt | sed '/^$/d' | wc -l)NUMOFLINES_ips_total=$(find . -type f -name 'ips.txt' -exec cat {} + | anew hosts/ips.txt | sed '/^$/d' | wc -l)NUMOFLINES_cloudsprov_total=$(find . -type f -name 'cdn_providers.txt' -exec cat {} + | anew hosts/cdn_providers.txt | sed '/^$/d' | wc -l)- find . -type f -name 'portscan_active.txt' -exec cat {} + | tee -a hosts/portscan_active.txt >>"$LOGFILE" 2>&1 >/dev/nullfind . -type f -name 'portscan_active.gnmap' -exec cat {} + | tee hosts/portscan_active.gnmap 2>>"$LOGFILE" >/dev/nullfind . -type f -name 'portscan_passive.txt' -exec cat {} + | tee hosts/portscan_passive.txt 2>&1 >>"$LOGFILE" >/dev/null@@ -6439,6 +6438,7 @@ function multi_recon() {notification "- ${NUMOFLINES_subs_total} total subdomains" goodnotification "- ${NUMOFLINES_subtko_total} total probably subdomain takeovers" goodnotification "- ${NUMOFLINES_webs_total} total websites" good+ notification "- ${NUMOFLINES_webs_total_uncommon} total websites on uncommon ports" goodnotification "- ${NUMOFLINES_ips_total} total ips" goodnotification "- ${NUMOFLINES_cloudsprov_total} total IPs belongs to cloud" goods3buckets