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 #323 and improvements
six2dezc2825ecad095
diff --git a/reconftw.sh b/reconftw.shindex 4e5295a..4eccff9 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -624,6 +624,7 @@ function webprobe_full(){NUMOFLINES=$(cat .tmp/probed_uncommon_ports_tmp.txt 2>>"$LOGFILE" | anew webs/webs_uncommon_ports.txt | wc -l)notification "Uncommon web ports: ${NUMOFLINES} new websites" good[ -s "webs/webs_uncommon_ports.txt" ] && cat webs/webs_uncommon_ports.txt+ rm -rf "unimap_logs" 2>>"$LOGFILE"end_func "Results are saved in $domain/webs/webs_uncommon_ports.txt" ${FUNCNAME[0]}if [ "$PROXY" = true ] && [ -n "$proxy_url" ] && [[ $(cat webs/webs_uncommon_ports.txt| wc -l) -le 1500 ]]; thennotification "Sending websites uncommon ports to proxy" info@@ -1141,7 +1142,7 @@ function crlf_checks(){crlfuzz -l webs/webs.txt -o vulns/crlf.txt 2>>"$LOGFILE" &>/dev/nullend_func "Results are saved in vulns/crlf.txt" ${FUNCNAME[0]}else- end_func "Skipping SSRF: Too many URLs to test, try with --deep flag" ${FUNCNAME[0]}+ end_func "Skipping CRLF: Too many URLs to test, try with --deep flag" ${FUNCNAME[0]}fielseif [ "$CRLF_CHECKS" = false ]; then@@ -1163,7 +1164,7 @@ function lfi(){doneend_func "Results are saved in vulns/lfi.txt" ${FUNCNAME[0]}else- end_func "Skipping SSRF: Too many URLs to test, try with --deep flag" ${FUNCNAME[0]}+ end_func "Skipping LFI: Too many URLs to test, try with --deep flag" ${FUNCNAME[0]}fifielse@@ -1481,17 +1482,17 @@ function start(){if [ -z "$domain" ]; thendomain="Multi"dir="$SCRIPTPATH/Recon/$domain"- called_fn_dir=$dir/.called_fn+ called_fn_dir="$dir"/.called_fnfiif [[ "$list" = /* ]]; then- install -D $list $dir/webs/webs.txt+ install -D "$list" "$dir"/webs/webs.txtelse- install -D $SCRIPTPATH/$list $dir/webs/webs.txt+ install -D "$SCRIPTPATH"/"$list" "$dir"/webs/webs.txtfifielsedir="$SCRIPTPATH/Recon/$domain"- called_fn_dir=$dir/.called_fn+ called_fn_dir="$dir"/.called_fnfiif [ -z "$domain" ]; then@@ -1500,9 +1501,9 @@ function start(){fiif [ ! -d "$called_fn_dir" ]; then- mkdir -p $called_fn_dir+ mkdir -p "$called_fn_dir"fi-+ mkdir -p "$dir"cd "$dir" || { echo "Failed to cd directory in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }mkdir -p .tmp .log osint subdomains webs hosts vulnsdiff --git a/reconftw_axiom.sh b/reconftw_axiom.shindex dbb2970..e7e3fc3 100755--- a/reconftw_axiom.sh+++ b/reconftw_axiom.sh@@ -643,6 +643,7 @@ function webprobe_full(){NUMOFLINES=$(cat .tmp/probed_uncommon_ports_tmp.txt 2>>"$LOGFILE" | anew webs/webs_uncommon_ports.txt | wc -l)notification "Uncommon web ports: ${NUMOFLINES} new websites" good[ -s "webs/webs_uncommon_ports.txt" ] && cat webs/webs_uncommon_ports.txt+ rm -rf "unimap_logs" 2>>"$LOGFILE"end_func "Results are saved in $domain/webs/webs_uncommon_ports.txt" ${FUNCNAME[0]}if [ "$PROXY" = true ] && [ -n "$proxy_url" ] && [[ $(cat webs/webs_uncommon_ports.txt| wc -l) -le 1500 ]]; thennotification "Sending websites uncommon ports to proxy" info@@ -1168,7 +1169,7 @@ function crlf_checks(){crlfuzz -l webs/webs.txt -o vulns/crlf.txt 2>>"$LOGFILE" &>/dev/nullend_func "Results are saved in vulns/crlf.txt" ${FUNCNAME[0]}else- end_func "Skipping SSRF: Too many URLs to test, try with --deep flag" ${FUNCNAME[0]}+ end_func "Skipping CRLF: Too many URLs to test, try with --deep flag" ${FUNCNAME[0]}fielseif [ "$CRLF_CHECKS" = false ]; then@@ -1190,7 +1191,7 @@ function lfi(){doneend_func "Results are saved in vulns/lfi.txt" ${FUNCNAME[0]}else- end_func "Skipping SSRF: Too many URLs to test, try with --deep flag" ${FUNCNAME[0]}+ end_func "Skipping LFI: Too many URLs to test, try with --deep flag" ${FUNCNAME[0]}fifielse@@ -1571,17 +1572,17 @@ function start(){if [ -z "$domain" ]; thendomain="Multi"dir="$SCRIPTPATH/Recon/$domain"- called_fn_dir=$dir/.called_fn+ called_fn_dir="$dir"/.called_fnfiif [[ "$list" = /* ]]; then- install -D $list $dir/webs/webs.txt+ install -D $list "$dir"/webs/webs.txtelse- install -D $SCRIPTPATH/$list $dir/webs/webs.txt+ install -D "$SCRIPTPATH"/"$list" "$dir"/webs/webs.txtfifielsedir="$SCRIPTPATH/Recon/$domain"- called_fn_dir=$dir/.called_fn+ called_fn_dir="$dir"/.called_fnfiif [ -z "$domain" ]; then@@ -1590,9 +1591,9 @@ function start(){fiif [ ! -d "$called_fn_dir" ]; then- mkdir -p $called_fn_dir+ mkdir -p "$called_fn_dir"fi-+ mkdir -p "$dir"cd "$dir" || { echo "Failed to cd directory in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }if [ -n "$domain" ]; thenecho "$domain" | anew -q target.txt