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
Skip subdomain search feature && fix in scope
six2dez30671e5fcdef
diff --git a/reconftw.cfg b/reconftw.cfgindex 06ff422..e451f2a 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -48,6 +48,8 @@ DOMAIN_INFO=trueMETAFINDER_LIMIT=20 # Max 250# Subdomains+SUBDOMAINS=true+SUBPASSIVE=trueSUBCRT=trueSUBANALYTICS=trueSUBBRUTE=truediff --git a/reconftw.sh b/reconftw.shindex 7aa5b0b..59da017 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -272,7 +272,9 @@ function subdomains_full(){resolvers_update- if ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; then+ [ -s "${inScope_file}" ] && cat ${inScope_file} | anew -q subdomains/subdomains.txt++ if ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]] && [ "$SUBDOMAINS" = true ]; thensub_passivesub_crtsub_active@@ -311,7 +313,7 @@ function subdomains_full(){}function sub_passive(){- if [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; then+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$SUBPASSIVE" = true ]; thenstart_subfunc "Running : Passive Subdomain Enumeration"if [ ! "$AXIOM" = true ]; thensubfinder -d $domain -all -o .tmp/subfinder_psub.txt 2>>"$LOGFILE" &>/dev/null@@ -349,7 +351,11 @@ function sub_passive(){NUMOFLINES=$(cat .tmp/*_psub.txt 2>>"$LOGFILE" | sed "s/*.//" | anew .tmp/passive_subs.txt | wc -l)end_subfunc "${NUMOFLINES} new subs (passive)" ${FUNCNAME[0]}else- printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"+ if [ "$SUBPASSIVE" = 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"+ fifi}@@ -377,7 +383,6 @@ function sub_crt(){function sub_active(){if [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; thenstart_subfunc "Running : Active Subdomain Enumeration"- [ -s "${inScope_file}" ] && cat ${inScope_file} .tmp/inscope_subs.txtcat .tmp/*_subs.txt | anew -q .tmp/subs_no_resolved.txtdeleteOutScoped $outOfScope_file .tmp/subs_no_resolved.txtif [ ! "$AXIOM" = true ]; then