Skip to content

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

Fix permutations ans skip for big subs list

six2dezd5b19e73fbed
diff --git a/reconftw.sh b/reconftw.sh
index 714a41d..b1b54cf 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -291,17 +291,20 @@ sub_permut(){
start=`date +%s`
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
- cat 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
- cat permute2_tmp.txt | anew -q permute2.txt
- cat permute1.txt permute2.txt | anew -q permute.txt
- eval rm permute1.txt permute1_tmp.txt permute2.txt permute2_tmp.txt $DEBUG_ERROR
- else
- 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
- cat permute_tmp.txt | anew -q permute.txt
- eval rm permute_tmp.txt $DEBUG_ERROR
+ 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
+ cat 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
+ cat permute2_tmp.txt | anew -q permute2.txt
+ cat permute1.txt permute2.txt | anew -q permute_subs.txt
+ eval rm permute1.txt permute1_tmp.txt permute2.txt permute2_tmp.txt $DEBUG_ERROR
+ elif [[ $(cat active_passive.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
+ cat permute_tmp.txt | anew -q permute_subs.txt
+ eval rm permute_tmp.txt $DEBUG_ERROR
+ else
+ printf "\n${yellow} Skipping Permutations: Too Much Subdomains${reset}\n"
fi
NUMOFLINES=$(wc -l < permute_subs.txt)
end=`date +%s`