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

subs recursive brute control

six2dez4ab2bfa04da7
diff --git a/reconftw.cfg b/reconftw.cfg
index 48b1834..906dfdf 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -60,6 +60,7 @@ SUBPERMUTE=true
SUBTAKEOVER=true
SUBRECURSIVE=true
SUB_RECURSIVE_PASSIVE=false # Uses a lot of API keys queries
+SUB_RECURSIVE_BRUTE=false # Needs big disk space and time to resolve
ZONETRANSFER=true
S3BUCKETS=true
REVERSE_IP=false
diff --git a/reconftw.sh b/reconftw.sh
index 8d12f46..1427d8b 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -620,7 +620,7 @@ function sub_recursive(){
fi
fi
# Bruteforce recursive
- if [[ $(cat subdomains/subdomains.txt | wc -l) -le $DEEP_LIMIT ]]; then
+ if [[ $(cat subdomains/subdomains.txt | wc -l) -le $DEEP_LIMIT ]] && [ "$SUB_RECURSIVE_BRUTE" = true ] ; then
echo "" > .tmp/brute_recursive_wordlist.txt
for sub in $(cat subdomains/subdomains.txt); do
sed "s/$/.$sub/" $subs_wordlist >> .tmp/brute_recursive_wordlist.txt