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

Added dnsvalidator threads control

six2dezc787562e2e43
diff --git a/install.sh b/install.sh
index 986be68..bdd8d32 100755
--- a/install.sh
+++ b/install.sh
@@ -336,8 +336,8 @@ printf "${bblue} Running: Performing last configurations ${reset}\n\n"
if [ ! -s "resolvers.txt" ] || [ $(find "resolvers.txt" -mtime +1 -print) ]; then
printf "${yellow} Resolvers seem older than 1 day\n Generating custom resolvers... ${reset}\n\n"
eval rm -f resolvers.txt &>/dev/null
- eval dnsvalidator -tL https://public-dns.info/nameservers.txt -threads 100 -o resolvers.txt $DEBUG_STD
- eval dnsvalidator -tL https://raw.githubusercontent.com/blechschmidt/massdns/master/lists/resolvers.txt -threads 100 -o tmp_resolvers $DEBUG_STD
+ eval dnsvalidator -tL https://public-dns.info/nameservers.txt -threads $DNSVALIDATOR_THREADS -o resolvers.txt $DEBUG_STD
+ eval dnsvalidator -tL https://raw.githubusercontent.com/blechschmidt/massdns/master/lists/resolvers.txt -threads $DNSVALIDATOR_THREADS -o tmp_resolvers $DEBUG_STD
eval cat tmp_resolvers $DEBUG_ERROR | anew -q resolvers.txt
eval rm -f tmp_resolvers $DEBUG_STD
fi
diff --git a/reconftw.cfg b/reconftw.cfg
index 0ff1e56..ce0b53d 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -146,6 +146,7 @@ WEBSCREENSHOT_THREADS=200
GOWITNESS_THREADS=8
RESOLVE_DOMAINS_THREADS=150
PPFUZZ_THREADS=30
+DNSVALIDATOR_THREADS=100
# Timeouts
CMSSCAN_TIMEOUT=3600
diff --git a/reconftw.sh b/reconftw.sh
index 8cb6bc9..daf0e00 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1826,8 +1826,8 @@ function resolvers_update(){
if [[ $(find "$resolvers" -mtime +1 -print) ]]; then
notification "Resolvers seem older than 1 day\n Generating custom resolvers..." warn
eval rm -f $resolvers 2>>"$LOGFILE"
- dnsvalidator -tL https://public-dns.info/nameservers.txt -threads 100 -o $resolvers &>/dev/null
- dnsvalidator -tL https://raw.githubusercontent.com/blechschmidt/massdns/master/lists/resolvers.txt -threads 100 -o tmp_resolvers &>/dev/null
+ dnsvalidator -tL https://public-dns.info/nameservers.txt -threads $DNSVALIDATOR_THREADS -o $resolvers &>/dev/null
+ dnsvalidator -tL https://raw.githubusercontent.com/blechschmidt/massdns/master/lists/resolvers.txt -threads $DNSVALIDATOR_THREADS -o tmp_resolvers &>/dev/null
cat tmp_resolvers | anew -q $resolvers
rm -f tmp_resolvers &>/dev/null
[ ! -s "$resolvers" ] && wget -O $resolvers https://raw.githubusercontent.com/proabiral/Fresh-Resolvers/master/resolvers.txt &>/dev/null