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
rush replaces interlace
six2dez3c43c7e6ebc1
diff --git a/install.sh b/install.shindex fcff231..1729502 100755--- a/install.sh+++ b/install.sh@@ -77,6 +77,7 @@ gotools["gitdorks_go"]="go install -v github.com/damit5/gitdorks_go@latest"gotools["smap"]="go install -v github.com/s0md3v/smap/cmd/smap@latest"gotools["dsieve"]="go install -v github.com/trickest/dsieve@master"gotools["inscope"]="go install github.com/tomnomnom/hacks/inscope@latest"+gotools["rush"]="go install github.com/shenwei356/rush@latest"declare -A reposrepos["dorks_hunter"]="six2dez/dorks_hunter"@@ -92,7 +93,6 @@ repos["xnLinkFinder"]="xnl-h4ck3r/xnLinkFinder"repos["Corsy"]="s0md3v/Corsy"repos["CMSeeK"]="Tuhinshubhra/CMSeeK"repos["fav-up"]="pielco11/fav-up"-repos["Interlace"]="codingo/Interlace"repos["massdns"]="blechschmidt/massdns"repos["Oralyzer"]="r0075h3ll/Oralyzer"repos["testssl"]="drwetter/testssl.sh"diff --git a/reconftw.sh b/reconftw.shindex 4392bb9..a46d39b 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -80,7 +80,7 @@ function tools_installed(){which ffuf &>/dev/null || { printf "${bred} [*] ffuf [NO]${reset}\n"; allinstalled=false;}which massdns &>/dev/null || { printf "${bred} [*] Massdns [NO]${reset}\n"; allinstalled=false;}which qsreplace &>/dev/null || { printf "${bred} [*] qsreplace [NO]${reset}\n"; allinstalled=false;}- which interlace &>/dev/null || { printf "${bred} [*] interlace [NO]${reset}\n"; allinstalled=false;}+ which rush &>/dev/null || { printf "${bred} [*] rush [NO]${reset}\n"; allinstalled=false;}which anew &>/dev/null || { printf "${bred} [*] Anew [NO]${reset}\n"; allinstalled=false;}which unfurl &>/dev/null || { printf "${bred} [*] unfurl [NO]${reset}\n"; allinstalled=false;}which crlfuzz &>/dev/null || { printf "${bred} [*] crlfuzz [NO]${reset}\n"; allinstalled=false;}@@ -960,7 +960,8 @@ function virtualhosts(){[ ! -s ".tmp/webs_all.txt" ] && cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q .tmp/webs_all.txtif [ -s ".tmp/webs_all.txt" ]; thenmkdir -p $dir/virtualhosts $dir/.tmp/virtualhosts- interlace -tL .tmp/webs_all.txt -threads ${INTERLACE_THREADS} -c "ffuf -ac -t ${FFUF_THREADS} -rate ${FFUF_RATELIMIT} -H \"${HEADER}\" -H \"Host: FUZZ._cleantarget_\" -w ${fuzz_wordlist} -maxtime ${FFUF_MAXTIME} -u _target_ -of json -o _output_/_cleantarget_.json" -o $dir/.tmp/virtualhosts 2>>"$LOGFILE" &>/dev/null+ # Must find a way to make this run with rush instead interlace+ #interlace -tL .tmp/webs_all.txt -threads ${INTERLACE_THREADS} -c "ffuf -ac -t ${FFUF_THREADS} -rate ${FFUF_RATELIMIT} -H \"${HEADER}\" -H \"Host: FUZZ._cleantarget_\" -w ${fuzz_wordlist} -maxtime ${FFUF_MAXTIME} -u _target_ -of json -o _output_/_cleantarget_.json" -o $dir/.tmp/virtualhosts 2>>"$LOGFILE" &>/dev/nullfor sub in $(cat .tmp/webs_all.txt); dosub_out=$(echo $sub | sed -e 's|^[^/]*//||' -e 's|/.*$||')[ -s "$dir/.tmp/virtualhosts/${sub_out}.json" ] && cat $dir/.tmp/virtualhosts/${sub_out}.json | jq -r 'try .results[] | "\(.status) \(.length) \(.url)"' | sort | anew -q $dir/virtualhosts/${sub_out}.txt@@ -1158,12 +1159,14 @@ function fuzz(){if [ -s ".tmp/webs_all.txt" ]; thenmkdir -p $dir/fuzzing $dir/.tmp/fuzzingif [ ! "$AXIOM" = true ]; then- interlace -tL .tmp/webs_all.txt -threads ${INTERLACE_THREADS} -c "ffuf ${FFUF_FLAGS} -t ${FFUF_THREADS} -rate ${FFUF_RATELIMIT} -H \"${HEADER}\" -w ${fuzz_wordlist} -maxtime ${FFUF_MAXTIME} -u _target_/FUZZ -of json -o _output_/_cleantarget_.json" -o $dir/.tmp/fuzzing 2>>"$LOGFILE" &>/dev/null- for sub in $(cat .tmp/webs_all.txt); do- sub_out=$(echo $sub | sed -e 's|^[^/]*//||' -e 's|/.*$||')- [ -s "$dir/.tmp/fuzzing/${sub_out}.json" ] && cat $dir/.tmp/fuzzing/${sub_out}.json | jq -r 'try .results[] | "\(.status) \(.length) \(.url)"' | sort | anew -q $dir/fuzzing/${sub_out}.txt- done- find $dir/fuzzing/ -type f -iname "*.txt" -exec cat {} + 2>>"$LOGFILE" | anew -q $dir/fuzzing/fuzzing_full.txt+ rush -i .tmp/webs_all.txt -j ${INTERLACE_THREADS} "ffuf ${FFUF_FLAGS} -t ${FFUF_THREADS} -rate ${FFUF_RATELIMIT} -H \"${HEADER}\" -w ${fuzz_wordlist} -maxtime ${FFUF_MAXTIME} -u \"{}/FUZZ\" -of json | anew -q $dir/.tmp/fuzzing_full.json" 2>>"$LOGFILE" &>/dev/null+ #interlace -tL .tmp/webs_all.txt -threads ${INTERLACE_THREADS} -c "ffuf ${FFUF_FLAGS} -t ${FFUF_THREADS} -rate ${FFUF_RATELIMIT} -H \"${HEADER}\" -w ${fuzz_wordlist} -maxtime ${FFUF_MAXTIME} -u _target_/FUZZ -of json -o _output_/_cleantarget_.json" -o $dir/.tmp/fuzzing 2>>"$LOGFILE" &>/dev/null+ #for sub in $(cat .tmp/webs_all.txt); do+ #sub_out=$(echo $sub | sed -e 's|^[^/]*//||' -e 's|/.*$||')+ #[ -s "$dir/.tmp/fuzzing/${sub_out}.json" ] && cat $dir/.tmp/fuzzing/${sub_out}.json | jq -r 'try .results[] | "\(.status) \(.length) \(.url)"' | sort | anew -q $dir/fuzzing/${sub_out}.txt+ #done+ [ -s "$dir/.tmp/fuzzing_full.json" ] && cat $dir/.tmp/fuzzing_full.json | jq -r 'try .results[] | "\(.status) \(.length) \(.url)"' | sort | anew -q $dir/fuzzing/fuzzing_full.txt+ #find $dir/fuzzing/ -type f -iname "*.txt" -exec cat {} + 2>>"$LOGFILE" | anew -q $dir/fuzzing/fuzzing_full.txtelseaxiom-exec 'wget -q -O - https://raw.githubusercontent.com/six2dez/OneListForAll/main/onelistforallmicro.txt > /home/op/lists/fuzz_wordlist.txt' &>/dev/nullaxiom-scan .tmp/webs_all.txt -m ffuf -w /home/op/lists/fuzz_wordlist.txt -H \"${HEADER}\" $FFUF_FLAGS -maxtime $FFUF_MAXTIME -of json -o $dir/.tmp/fuzzing/ffuf-content.json $AXIOM_EXTRA_ARGS 2>>"$LOGFILE" &>/dev/null@@ -1387,7 +1390,8 @@ function jschecks(){[ -s "js/js_livelinks.txt" ] && axiom-scan js/js_livelinks.txt -m nuclei -w /home/op/recon/nuclei/exposures/tokens/ -retries 3 -rl $NUCLEI_RATELIMIT -o js/js_secrets.txt $AXIOM_EXTRA_ARGS 2>>"$LOGFILE" &>/dev/nullfiprintf "${yellow} Running : Building wordlist 5/5${reset}\n"- [ -s "js/js_livelinks.txt" ] && interlace -tL js/js_livelinks.txt -threads ${INTERLACE_THREADS} -c "python3 $tools/getjswords.py '_target_' | anew -q webs/dict_words.txt" &>/dev/null+ [ -s "js/js_livelinks.txt" ] && rush -j ${INTERLACE_THREADS} -i js/js_livelinks.txt "python3 $tools/getjswords.py '{}' | anew -q webs/dict_words.txt" &>/dev/null+ #[ -s "js/js_livelinks.txt" ] && interlace -tL js/js_livelinks.txt -threads ${INTERLACE_THREADS} -c "python3 $tools/getjswords.py '_target_' | anew -q webs/dict_words.txt" &>/dev/nullend_func "Results are saved in $domain/js folder" ${FUNCNAME[0]}elseend_func "No JS urls found for $domain, function skipped" ${FUNCNAME[0]}@@ -1655,7 +1659,8 @@ function lfi(){if [ -s "gf/lfi.txt" ]; thencat gf/lfi.txt | qsreplace FUZZ | sed '/FUZZ/!d' | anew -q .tmp/tmp_lfi.txtif [ "$DEEP" = true ] || [[ $(cat .tmp/tmp_lfi.txt | wc -l) -le $DEEP_LIMIT ]]; then- interlace -tL .tmp/tmp_lfi.txt -threads ${INTERLACE_THREADS} -c "ffuf -v -r -t ${FFUF_THREADS} -rate ${FFUF_RATELIMIT} -H \"${HEADER}\" -w ${lfi_wordlist} -u \"_target_\" -mr \"root:\" " 2>/dev/null | grep "URL" | sed 's/| URL | //' | anew -q vulns/lfi.txt+ rush -i .tmp/tmp_lfi.txt -j ${INTERLACE_THREADS} "ffuf -v -r -t ${FFUF_THREADS} -rate ${FFUF_RATELIMIT} -H \"${HEADER}\" -w ${lfi_wordlist} -u \"{}\" -mr \"root:\" " 2>/dev/null | grep "URL" | sed 's/| URL | //' | anew -q vulns/lfi.txt+ #interlace -tL .tmp/tmp_lfi.txt -threads ${INTERLACE_THREADS} -c "ffuf -v -r -t ${FFUF_THREADS} -rate ${FFUF_RATELIMIT} -H \"${HEADER}\" -w ${lfi_wordlist} -u \"_target_\" -mr \"root:\" " 2>/dev/null | grep "URL" | sed 's/| URL | //' | anew -q vulns/lfi.txtend_func "Results are saved in vulns/lfi.txt" ${FUNCNAME[0]}elseend_func "Skipping LFI: Too many URLs to test, try with --deep flag" ${FUNCNAME[0]}@@ -1678,7 +1683,8 @@ function ssti(){if [ -s "gf/ssti.txt" ]; thencat gf/ssti.txt | qsreplace FUZZ | sed '/FUZZ/!d' | anew -q .tmp/tmp_ssti.txtif [ "$DEEP" = true ] || [[ $(cat .tmp/tmp_ssti.txt | wc -l) -le $DEEP_LIMIT ]]; then- interlace -tL .tmp/tmp_ssti.txt -threads ${INTERLACE_THREADS} -c "ffuf -v -r -t ${FFUF_THREADS} -rate ${FFUF_RATELIMIT} -H \"${HEADER}\" -w ${ssti_wordlist} -u \"_target_\" -mr \"ssti49\" " 2>/dev/null | grep "URL" | sed 's/| URL | //' | anew -q vulns/ssti.txt+ rush -i .tmp/tmp_ssti.txt -j ${INTERLACE_THREADS} "ffuf -v -r -t ${FFUF_THREADS} -rate ${FFUF_RATELIMIT} -H \"${HEADER}\" -w ${ssti_wordlist} -u \"{}\"-mr \"ssti49\" " 2>/dev/null | grep "URL" | sed 's/| URL | //' | anew -q vulns/ssti.txt+ #interlace -tL .tmp/tmp_ssti.txt -threads ${INTERLACE_THREADS} -c "ffuf -v -r -t ${FFUF_THREADS} -rate ${FFUF_RATELIMIT} -H \"${HEADER}\" -w ${ssti_wordlist} -u \"_target_\" -mr \"ssti49\" " 2>/dev/null | grep "URL" | sed 's/| URL | //' | anew -q vulns/ssti.txtend_func "Results are saved in vulns/ssti.txt" ${FUNCNAME[0]}elseend_func "Skipping SSTI: Too many URLs to test, try with --deep flag" ${FUNCNAME[0]}@@ -2325,7 +2331,7 @@ function recon(){remove_big_filess3bucketsscreenshot- virtualhosts+# virtualhostscdnproviderportscanwaf_checks@@ -2430,7 +2436,7 @@ function multi_recon(){subtakeoverremove_big_filesscreenshot- virtualhosts+# virtualhostscdnproviderportscancurrently=$(date +"%H:%M:%S")@@ -2539,7 +2545,7 @@ function subs_menu(){subtakeoverremove_big_filesscreenshot- virtualhosts+# virtualhostszonetransfers3buckets@@ -2554,7 +2560,7 @@ function webs_menu(){subtakeoverremove_big_filesscreenshot- virtualhosts+# virtualhostswaf_checksnuclei_checkcms_scannerdiff --git a/requirements.txt b/requirements.txtindex 6136bda..9fa4d58 100644--- a/requirements.txt+++ b/requirements.txt@@ -10,7 +10,6 @@ beautifulsoup4 # multiplebs4 # multiplecensys # theHarvestercertifi # theHarvester-colorclass # interlacednspython # ip2provideremailfinder # Toolfake-useragent # fav-up