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

subdomains search by NOERROR DNS response

six2dez406d2fde005c
diff --git a/reconftw.cfg b/reconftw.cfg
index ca72d26..b392ba8 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -51,6 +51,7 @@ METAFINDER_LIMIT=20 # Max 250
SUBDOMAINS_GENERAL=true # Enable or disable the whole Subdomains module
SUBPASSIVE=true # Passive subdomains search
SUBCRT=true # crtsh search
+SUBNOERROR=true # Check DNS NOERROR response and BF on them
SUBANALYTICS=true # Google Analytics search
SUBBRUTE=true # DNS bruteforcing
SUBSCRAPING=true # Subdomains extraction from web crawling
diff --git a/reconftw.sh b/reconftw.sh
index 9e79aad..164d198 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -295,6 +295,7 @@ function subdomains_full(){
sub_passive
sub_crt
sub_active
+ sub_noerror
sub_brute
sub_permut
sub_recursive_passive
@@ -409,6 +410,33 @@ function sub_active(){
fi
}
+function sub_noerror(){
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$SUBNOERROR" = true ]; then
+ start_subfunc ${FUNCNAME[0]} "Running : Checking NOERROR DNS response"
+ if [[ $(echo "${RANDOM}thistotallynotexist${RANDOM}.$domain" | dnsx -r ~/Tools/resolvers.txt -rcode noerror,nxdomain -retry 3 -silent | cut -d' ' -f2) == "[NOERROR]" ]]; then
+ resolvers_update_quick_local
+ if [ "$DEEP" = true ]; then
+ dnsx -d $domain -r $resolvers -silent -rcode noerror -w $subs_wordlist_big | cut -d' ' -f1 | anew -q .tmp/subs_noerror.txt 2>>"$LOGFILE" &>/dev/null
+ else
+ dnsx -d $domain -r $resolvers -silent -rcode noerror -w $subs_wordlist | cut -d' ' -f1 | anew -q .tmp/subs_noerror.txt 2>>"$LOGFILE" &>/dev/null
+ fi
+ if [ "$INSCOPE" = true ]; then
+ check_inscope .tmp/subs_noerror.txt
+ fi
+ NUMOFLINES=$(cat .tmp/subs_noerror.txt 2>>"$LOGFILE" | sed "s/*.//" | grep ".$domain$" | anew subdomains/subdomains.txt | sed '/^$/d' | wc -l)
+ end_subfunc "${NUMOFLINES} new subs (DNS noerror)" ${FUNCNAME[0]}
+ else
+ printf "\n${yellow} Detected DNSSEC black lies, skipping this technique ${reset}\n"
+ fi
+ else
+ if [ "$SUBBRUTE" = false ]; then
+ printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
+ else
+ printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"
+ fi
+ fi
+}
+
function sub_dns(){
if [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; then
start_subfunc ${FUNCNAME[0]} "Running : DNS Subdomain Enumeration and PTR search"