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
Avoid missing subs
six2dez20dd0ad1b11f
diff --git a/reconftw.sh b/reconftw.shindex a17408c..92c0823 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -309,7 +309,7 @@ sub_brute(){thenstart=`date +%s`printf "${yellow} Running : Bruteforce Subdomain Enumeration${reset}\n"- eval shuffledns -d $domain -w $tools/subdomains.txt -r $tools/resolvers.txt -o active_tmp.txt $DEBUG_STD+ eval shuffledns -d $domain -w $tools/subdomains.txt -r $tools/resolvers.txt -t 5000 -o active_tmp.txt $DEBUG_STDcat active_tmp.txt | sed "s/*.//" | anew -q brute_subs.txt && touch $called_fn_dir/.${FUNCNAME[0]}eval rm active_tmp.txt $DEBUG_ERRORNUMOFLINES=$(wc -l < brute_subs.txt)@@ -326,9 +326,9 @@ sub_dns(){thenstart=`date +%s`printf "${yellow} Running : Active Subdomain Enumeration${reset}\n"- cat *_subs.txt | anew -q tmp_subs_resolution.txt- deleteOutScoped $outOfScope_file tmp_subs_resolution.txt- eval shuffledns -d $domain -list tmp_subs_resolution.txt -r $tools/resolvers.txt -o ${domain}_subdomains.txt $DEBUG_STD && touch $called_fn_dir/.${FUNCNAME[0]}+ cat *_subs.txt | anew -q subs_no_resolved.txt+ deleteOutScoped $outOfScope_file subs_no_resolved.txt+ eval shuffledns -d $domain -list subs_no_resolved.txt -r $tools/resolvers.txt -t 5000 -o ${domain}_subdomains.txt $DEBUG_STD && touch $called_fn_dir/.${FUNCNAME[0]}NUMOFLINES=$(wc -l < ${domain}_subdomains.txt)end=`date +%s`getElapsedTime $start $end@@ -349,7 +349,7 @@ sub_scraping(){if [[ $(cat JS_subs.txt | wc -l) -gt 0 ]]thenNUMOFLINES=$(wc -l < JS_subs.txt)- cat JS_subs.txt | eval shuffledns -d $domain -r $tools/resolvers.txt -o JS_subs_temp.txt $DEBUG_STD+ cat JS_subs.txt | eval shuffledns -d $domain -r $tools/resolvers.txt -t 5000 -o JS_subs_temp.txt $DEBUG_STDcat JS_subs_temp.txt | anew -q ${domain}_subdomains.txteval rm JS_subs_temp.txt ${domain}_probed_tmp.txt $DEBUG_ERRORelse@@ -368,19 +368,19 @@ sub_permut(){thenstart=`date +%s`printf "${yellow} Running : Permutations Subdomain Enumeration${reset}\n"- if [[ $(cat tmp_subs_resolution.txt | wc -l) -le 50 ]]+ if [[ $(cat subs_no_resolved.txt | wc -l) -le 50 ]]then- eval dnsgen tmp_subs_resolution.txt --wordlist $tools/permutations_list.txt $DEBUG_ERROR | eval shuffledns -d $domain -r $tools/resolvers.txt -o permute1_tmp.txt $DEBUG_STD+ eval dnsgen subs_no_resolved.txt --wordlist $tools/permutations_list.txt $DEBUG_ERROR | eval shuffledns -d $domain -r $tools/resolvers.txt -t 5000 -o permute1_tmp.txt $DEBUG_STDcat permute1_tmp.txt | anew -q permute1.txt- eval dnsgen permute1.txt --wordlist $tools/permutations_list.txt $DEBUG_ERROR | eval shuffledns -d $domain -r $tools/resolvers.txt -o permute2_tmp.txt $DEBUG_STD+ eval dnsgen permute1.txt --wordlist $tools/permutations_list.txt $DEBUG_ERROR | eval shuffledns -d $domain -r $tools/resolvers.txt -t 5000 -o permute2_tmp.txt $DEBUG_STDcat permute2_tmp.txt | anew -q permute2.txtcat permute1.txt permute2.txt | anew -q permute_subs.txt- eval rm permute1.txt permute1_tmp.txt permute2.txt permute2_tmp.txt tmp_subs_resolution.txt $DEBUG_ERROR && touch $called_fn_dir/.${FUNCNAME[0]}- elif [[ $(cat tmp_subs_resolution.txt | wc -l) -le 100 ]]+ eval rm permute1.txt permute1_tmp.txt permute2.txt permute2_tmp.txt $DEBUG_ERROR && touch $called_fn_dir/.${FUNCNAME[0]}+ elif [[ $(cat subs_no_resolved.txt | wc -l) -le 100 ]]then- eval dnsgen tmp_subs_resolution.txt --wordlist $tools/permutations_list.txt $DEBUG_ERROR | eval shuffledns -d $domain -r $tools/resolvers.txt -o permute_tmp.txt $DEBUG_STD+ eval dnsgen subs_no_resolved.txt --wordlist $tools/permutations_list.txt $DEBUG_ERROR | eval shuffledns -d $domain -r $tools/resolvers.txt -t 5000 -o permute_tmp.txt $DEBUG_STDcat permute_tmp.txt | anew -q permute_subs.txt- eval rm permute_tmp.txt tmp_subs_resolution.txt $DEBUG_ERROR && touch $called_fn_dir/.${FUNCNAME[0]}+ eval rm permute_tmp.txt $DEBUG_ERROR && touch $called_fn_dir/.${FUNCNAME[0]}elseprintf "${bred} Skipping Permutations: Too Much Subdomains${reset}\n"fi