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
Shuffledns overload management and other error controls
six2dez2a1667268b3a
diff --git a/reconftw.sh b/reconftw.shindex 78ac2cf..38d8589 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -287,7 +287,7 @@ sub_brute(){thenstart=`date +%s`printf "${yellow} Running : Bruteforce Subdomain Enumeration 2/6${reset}\n"- eval shuffledns -d $domain -w $tools/subdomains.txt -r $tools/resolvers.txt -o active_tmp.txt $DEBUG_STD+ eval shuffledns -retries 2 -t 5000 -d $domain -w $tools/subdomains.txt -r $tools/resolvers.txt -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)@@ -305,7 +305,7 @@ sub_dns(){start=`date +%s`printf "${yellow} Running : Active Subdomain Enumeration 3/6${reset}\n"cat *_subs.txt > 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]}+ eval shuffledns -retries 2 -t 5000 -d $domain -list tmp_subs_resolution.txt -r $tools/resolvers.txt -o ${domain}_subdomains.txt $DEBUG_STD && touch $called_fn_dir/.${FUNCNAME[0]}NUMOFLINES=$(wc -l < ${domain}_subdomains.txt)end=`date +%s`runtime=$((end-start))@@ -322,21 +322,26 @@ sub_permut(){printf "${yellow} Running : Permutations Subdomain Enumeration 4/6${reset}\n"if [[ $(cat tmp_subs_resolution.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 permute1_tmp.txt $DEBUG_STD+ eval dnsgen tmp_subs_resolution.txt --wordlist $tools/permutations_list.txt $DEBUG_ERROR | eval shuffledns -retries 2 -t 5000 -d $domain -r $tools/resolvers.txt -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 -retries 2 -t 5000 -d $domain -r $tools/resolvers.txt -o permute2_tmp.txt $DEBUG_STDcat permute2_tmp.txt | anew -q permute2.txtcat permute1.txt permute2.txt | anew -q permute.txteval rm permute1.txt permute1_tmp.txt permute2.txt permute2_tmp.txt $DEBUG_ERROR && touch $called_fn_dir/.${FUNCNAME[0]}elif [[ $(cat tmp_subs_resolution.txt | wc -l) -le 200 ]]- 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+ then+ eval dnsgen tmp_subs_resolution.txt --wordlist $tools/permutations_list.txt $DEBUG_ERROR | eval shuffledns -retries 2 -t 5000 -d $domain -r $tools/resolvers.txt -o permute_tmp.txt $DEBUG_STDcat permute_tmp.txt | anew -q permute.txteval rm permute_tmp.txt $DEBUG_ERROR && touch $called_fn_dir/.${FUNCNAME[0]}- else- printf "\n${yellow} Skipping Permutations: Too Much Subdomains${reset}\n"+ else+ printf "\n${bred} Skipping Permutations: Too Much Subdomains${reset}\n"fi- NUMOFLINES=$(wc -l < permute_subs.txt)+ if [ -f "permute_subs.txt" ]+ then+ NUMOFLINES=$(wc -l < permute_subs.txt)+ else+ NUMOFLINES=0+ fiend=`date +%s`runtime=$((end-start))printf "${green} ${NUMOFLINES} subdomains found in ${runtime} secs${reset}\n\n"