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
Fixed proxify, output and wordlists
six2dezd6f7e7566d0b
diff --git a/reconftw.cfg b/reconftw.cfgindex 4531a29..6cd343c 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -86,6 +86,7 @@ CMS_SCANNER=trueWORDLIST=true# Vulns+VULNS_GENERAL=falseXSS=trueCORS=trueTEST_SSL=truediff --git a/reconftw.sh b/reconftw.shindex 314d0ca..4e5295a 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -600,7 +600,7 @@ function webprobe_simple(){end_subfunc "${NUMOFLINES} new websites resolved" ${FUNCNAME[0]}if [ "$PROXY" = true ] && [ -n "$proxy_url" ] && [[ $(cat webs/webs.txt| wc -l) -le 1500 ]]; thennotification "Sending websites to proxy" info- ffuf -mc all -w webs/webs.txt -u FUZZ -replay-proxy $proxy_url 2>>"$LOGFILE" &>/dev/null+ ffuf -mc all -fc 404 -w webs/webs.txt -u FUZZ -replay-proxy $proxy_url 2>>"$LOGFILE" &>/dev/nullfielseend_subfunc "No new websites to probe" ${FUNCNAME[0]}@@ -627,7 +627,7 @@ function webprobe_full(){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- ffuf -mc all -w webs/webs_uncommon_ports.txt -u FUZZ -replay-proxy $proxy_url 2>>"$LOGFILE" &>/dev/null+ ffuf -mc all -fc 404 -w webs/webs_uncommon_ports.txt -u FUZZ -replay-proxy $proxy_url 2>>"$LOGFILE" &>/dev/nullfielseif [ "$WEBPROBEFULL" = false ]; then@@ -882,7 +882,7 @@ function urlchecks(){end_func "Results are saved in $domain/webs/url_extract.txt" ${FUNCNAME[0]}if [ "$PROXY" = true ] && [ -n "$proxy_url" ] && [[ $(cat webs/url_extract.txt | wc -l) -le 1500 ]]; thennotification "Sending urls to proxy" info- ffuf -mc all -w webs/url_extract.txt -u FUZZ -replay-proxy $proxy_url 2>>"$LOGFILE" &>/dev/null+ ffuf -mc all -fc 404 -w webs/url_extract.txt -u FUZZ -replay-proxy $proxy_url 2>>"$LOGFILE" &>/dev/nullfifielse@@ -957,7 +957,7 @@ function jschecks(){printf "${yellow} Running : Gathering secrets 4/5${reset}\n"[ -s "js/js_livelinks.txt" ] && cat js/js_livelinks.txt | nuclei -silent -t ~/nuclei-templates/exposures/tokens/ -r $resolvers_trusted -o js/js_secrets.txt 2>>"$LOGFILE" &>/dev/nullprintf "${yellow} Running : Building wordlist 5/5${reset}\n"- [ -s "js/js_livelinks.txt" ] && cat js/js_livelinks.txt | python3 $tools/getjswords.py 2>>"$LOGFILE" | anew -q webs/dict_words.txt+ [ -s "js/js_livelinks.txt" ] && cat js/js_livelinks.txt | python3 $tools/getjswords.py 2>>"$LOGFILE" | anew -q webs/dict_words.txtend_func "Results are saved in $domain/js folder" ${FUNCNAME[0]}elseend_func "No JS urls found for $domain, function skipped" ${FUNCNAME[0]}@@ -975,13 +975,17 @@ function wordlist_gen(){if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$WORDLIST" = true ]; thenstart_func "Wordlist generation"if [ -s ".tmp/url_extract_tmp.txt" ]; then- cat .tmp/url_extract_tmp.txt | unfurl -u keys 2>>"$LOGFILE" | sed 's/[][]//g' | sed 's/[#]//g' | sed 's/[}{]//g' | anew -q webs/dict_words.txt- cat .tmp/url_extract_tmp.txt | unfurl -u values 2>>"$LOGFILE" | sed 's/[][]//g' | sed 's/[#]//g' | sed 's/[}{]//g' | anew -q webs/dict_words.txt+ cat .tmp/url_extract_tmp.txt | unfurl -u keys 2>>"$LOGFILE" | sed 's/[][]//g' | sed 's/[#]//g' | sed 's/[}{]//g' | anew -q webs/dict_params.txt+ cat .tmp/url_extract_tmp.txt | unfurl -u values 2>>"$LOGFILE" | sed 's/[][]//g' | sed 's/[#]//g' | sed 's/[}{]//g' | anew -q webs/dict_values.txtcat .tmp/url_extract_tmp.txt | tr "[:punct:]" "\n" | anew -q webs/dict_words.txtfi- [ -s ".tmp/js_endpoints.txt" ] && cat .tmp/js_endpoints.txt | unfurl -u path 2>>"$LOGFILE" | anew -q webs/dict_paths.txt- [ -s ".tmp/url_extract_tmp.txt" ] && cat .tmp/url_extract_tmp.txt | unfurl -u path 2>>"$LOGFILE" | anew -q webs/dict_paths.txt+ [ -s ".tmp/js_endpoints.txt" ] && cat .tmp/js_endpoints.txt | unfurl -u format %s://%d%p 2>>"$LOGFILE" | anew -q webs/all_paths.txt+ [ -s ".tmp/url_extract_tmp.txt" ] && cat .tmp/url_extract_tmp.txt | unfurl -u format %s://%d%p 2>>"$LOGFILE" | anew -q webs/all_paths.txtend_func "Results are saved in $domain/webs/dict_[words|paths].txt" ${FUNCNAME[0]}+ if [ "$PROXY" = true ] && [ -n "$proxy_url" ] && [[ $(cat webs/all_paths.txt | wc -l) -le 1500 ]]; then+ notification "Sending urls to proxy" info+ ffuf -mc all -fc 404 -w webs/all_paths.txt -u FUZZ -replay-proxy $proxy_url 2>>"$LOGFILE" &>/dev/null+ fielseif [ "$WORDLIST" = false ]; thenprintf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"@@ -1573,19 +1577,7 @@ function passive(){function all(){startrecon- 4xxbypass- cors- open_redirect- ssrf_checks- crlf_checks- lfi- ssti- sqli- xss- command_injection- spraying- brokenLinks- test_ssl+ vulnsend}@@ -1599,6 +1591,24 @@ function osint(){favicon}+function vulns(){+ if [ "$VULNS_GENERAL" = true ]; then+ 4xxbypass+ cors+ open_redirect+ ssrf_checks+ crlf_checks+ lfi+ ssti+ sqli+ xss+ command_injection+ spraying+ brokenLinks+ test_ssl+ fi+}+function multi_osint(){global_start=$(date +%s)@@ -1840,28 +1850,16 @@ function subs_menu(){function webs_menu(){subtakeover- s3buckets+ screenshotwaf_checksnuclei_checkcms_scannerfuzz- 4xxbypass- corsurlchecks- url_gfjschecks+ url_gfwordlist_gen- open_redirect- ssrf_checks- crlf_checks- lfi- ssti- sqli- xss- command_injection- spraying- brokenLinks- test_ssl+ vulnsend}@@ -1980,9 +1978,11 @@ while true; do# extra stuff'-o')- dir_output=$2- output-+ if [[ "$2" != /* ]]; then+ dir_output=$PWD/$2+ else+ dir_output=$2+ fishift 2continue;;@@ -2106,6 +2106,7 @@ case $opt_mode infi;;'a')+ export VULNS_GENERAL=trueif [ -n "$list" ]; then#mode="all"sed -i 's/\r$//' $listdiff --git a/reconftw_axiom.sh b/reconftw_axiom.shindex cb1473c..dbb2970 100755--- a/reconftw_axiom.sh+++ b/reconftw_axiom.sh@@ -313,9 +313,9 @@ function sub_passive(){github-subdomains -d $domain -k -q -t $GITHUB_TOKENS -o .tmp/github_subdomains_psub.txt 2>>"$LOGFILE" &>/dev/nullfifi- curl -s "https://jldc.me/anubis/subdomains/${domain}" 2>>"$LOGFILE" | grep -Po "((http|https):\/\/)?(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | sed '/^\./d' | anew -q .tmp/curl_psub.txt- curl "https://tls.bufferover.run/dns?q=.${domain}" 2>>"$LOGFILE" | jq -r .Results[] 2>>"$LOGFILE" | cut -d ',' -f3 | grep -F ".$domain" | anew -q .tmp/curl_psub.txt- curl "https://dns.bufferover.run/dns?q=.${domain}" 2>>"$LOGFILE" | jq -r '.FDNS_A'[],'.RDNS'[] 2>>"$LOGFILE" | cut -d ',' -f2 | grep -F ".$domain" | anew -q .tmp/curl_psub.txt+ curl -s -k "https://jldc.me/anubis/subdomains/${domain}" 2>>"$LOGFILE" | grep -Po "((http|https):\/\/)?(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | sed '/^\./d' | anew -q .tmp/curl_psub.txt+ curl -s -k "https://dns.bufferover.run/dns?q=.${domain}" 2>>"$LOGFILE" | jq -r '.FDNS_A'[],'.RDNS'[] 2>>"$LOGFILE" | cut -d ',' -f2 | grep -F ".$domain" | anew -q .tmp/curl_psub.txt+ curl -s -k "https://tls.bufferover.run/dns?q=.${domain}" 2>>"$LOGFILE" | jq -r .Results[] 2>>"$LOGFILE" | cut -d ',' -f3 | grep -F ".$domain" | anew -q .tmp/curl_psub.txtif echo $domain | grep -q ".mil$"; thenmildewmv mildew.out .tmp/mildew.out@@ -618,7 +618,7 @@ function webprobe_simple(){end_subfunc "${NUMOFLINES} new websites resolved" ${FUNCNAME[0]}if [ "$PROXY" = true ] && [ -n "$proxy_url" ] && [[ $(cat webs/webs.txt| wc -l) -le 1500 ]]; thennotification "Sending websites to proxy" info- ffuf -mc all -w webs/webs.txt -u FUZZ -replay-proxy $proxy_url 2>>"$LOGFILE" &>/dev/null+ ffuf -mc all -fc 404 -w webs/webs.txt -u FUZZ -replay-proxy $proxy_url 2>>"$LOGFILE" &>/dev/nullfielseend_subfunc "No new websites to probe" ${FUNCNAME[0]}@@ -646,7 +646,7 @@ function webprobe_full(){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- ffuf -mc all -w webs/webs_uncommon_ports.txt -u FUZZ -replay-proxy $proxy_url 2>>"$LOGFILE" &>/dev/null+ ffuf -mc all -fc 404 -w webs/webs_uncommon_ports.txt -u FUZZ -replay-proxy $proxy_url 2>>"$LOGFILE" &>/dev/nullfielseif [ "$WEBPROBEFULL" = false ]; then@@ -908,7 +908,7 @@ function urlchecks(){end_func "Results are saved in $domain/webs/url_extract.txt" ${FUNCNAME[0]}if [ "$PROXY" = true ] && [ -n "$proxy_url" ] && [[ $(cat webs/url_extract.txt | wc -l) -le 1500 ]]; thennotification "Sending urls to proxy" info- ffuf -mc all -w webs/url_extract.txt -u FUZZ -replay-proxy $proxy_url 2>>"$LOGFILE" &>/dev/null+ ffuf -mc all -fc 404 -w webs/url_extract.txt -u FUZZ -replay-proxy $proxy_url 2>>"$LOGFILE" &>/dev/nullfifielse@@ -1002,13 +1002,17 @@ function wordlist_gen(){if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$WORDLIST" = true ]; thenstart_func "Wordlist generation"if [ -s ".tmp/url_extract_tmp.txt" ]; then- cat .tmp/url_extract_tmp.txt | unfurl -u keys 2>>"$LOGFILE" | sed 's/[][]//g' | sed 's/[#]//g' | sed 's/[}{]//g' | anew -q webs/dict_words.txt- cat .tmp/url_extract_tmp.txt | unfurl -u values 2>>"$LOGFILE" | sed 's/[][]//g' | sed 's/[#]//g' | sed 's/[}{]//g' | anew -q webs/dict_words.txt+ cat .tmp/url_extract_tmp.txt | unfurl -u keys 2>>"$LOGFILE" | sed 's/[][]//g' | sed 's/[#]//g' | sed 's/[}{]//g' | anew -q webs/dict_params.txt+ cat .tmp/url_extract_tmp.txt | unfurl -u values 2>>"$LOGFILE" | sed 's/[][]//g' | sed 's/[#]//g' | sed 's/[}{]//g' | anew -q webs/dict_values.txtcat .tmp/url_extract_tmp.txt | tr "[:punct:]" "\n" | anew -q webs/dict_words.txtfi- [ -s ".tmp/js_endpoints.txt" ] && cat .tmp/js_endpoints.txt | unfurl -u path 2>>"$LOGFILE" | anew -q webs/dict_paths.txt- [ -s ".tmp/url_extract_tmp.txt" ] && cat .tmp/url_extract_tmp.txt | unfurl -u path 2>>"$LOGFILE" | anew -q webs/dict_paths.txt+ [ -s ".tmp/js_endpoints.txt" ] && cat .tmp/js_endpoints.txt | unfurl -u format %s://%d%p 2>>"$LOGFILE" | anew -q webs/all_paths.txt+ [ -s ".tmp/url_extract_tmp.txt" ] && cat .tmp/url_extract_tmp.txt | unfurl -u format %s://%d%p 2>>"$LOGFILE" | anew -q webs/all_paths.txtend_func "Results are saved in $domain/webs/dict_[words|paths].txt" ${FUNCNAME[0]}+ if [ "$PROXY" = true ] && [ -n "$proxy_url" ] && [[ $(cat webs/all_paths.txt | wc -l) -le 1500 ]]; then+ notification "Sending urls to proxy" info+ ffuf -mc all -fc 404 -w webs/all_paths.txt -u FUZZ -replay-proxy $proxy_url 2>>"$LOGFILE" &>/dev/null+ fielseif [ "$WORDLIST" = false ]; thenprintf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"@@ -1674,19 +1678,7 @@ function passive(){function all(){startrecon- 4xxbypass- cors- open_redirect- ssrf_checks- crlf_checks- lfi- ssti- sqli- xss- command_injection- spraying- brokenLinks- test_ssl+ vulnsend}@@ -1700,6 +1692,24 @@ function osint(){favicon}+function vulns(){+ if [ "$VULNS_GENERAL" = true ]; then+ 4xxbypass+ cors+ open_redirect+ ssrf_checks+ crlf_checks+ lfi+ ssti+ sqli+ xss+ command_injection+ spraying+ brokenLinks+ test_ssl+ fi+}+function multi_osint(){global_start=$(date +%s)@@ -1960,28 +1970,16 @@ function subs_menu(){function webs_menu(){subtakeover- s3buckets+ screenshotwaf_checksnuclei_checkcms_scannerfuzz- 4xxbypass- corsurlchecks- url_gfjschecks+ url_gfwordlist_gen- open_redirect- ssrf_checks- crlf_checks- lfi- ssti- sqli- xss- command_injection- spraying- brokenLinks- test_ssl+ vulnsend}@@ -2100,9 +2098,11 @@ while true; do# extra stuff'-o')- dir_output=$2- output-+ if [[ "$2" != /* ]]; then+ dir_output=$PWD/$2+ else+ dir_output=$2+ fishift 2continue;;@@ -2226,6 +2226,7 @@ case $opt_mode infi;;'a')+ export VULNS_GENERAL=trueif [ -n "$list" ]; thenmode="all"sed -i 's/\r$//' $list