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
sub passive output files fix
six2dezd56f6135cf30
diff --git a/reconftw.sh b/reconftw.shindex d28ccde..00bb97a 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -379,12 +379,11 @@ function sub_passive(){if [ ! "$AXIOM" = true ]; then[[ $RUNAMASS == true ]] && amass enum -passive -d $domain -config $AMASS_CONFIG -timeout $AMASS_ENUM_TIMEOUT -json .tmp/amass_json.json 2>>"$LOGFILE" &>/dev/null[ -s ".tmp/amass_json.json" ] && cat .tmp/amass_json.json | jq -r '.name' | anew -q .tmp/amass_psub.txt- [[ $RUNSUBFINDER == true ]] && subfinder -all -d $domain -silent | anew -q .tmp/amass_psub.txt+ [[ $RUNSUBFINDER == true ]] && subfinder -all -d $domain -silent -o .tmp/subfinder_psub.txt 2>>"$LOGFILE" &>/dev/nullelseecho $domain > .tmp/amass_temp_axiom.txt- [[ $RUNAMASS == true ]] && axiom-scan .tmp/amass_temp_axiom.txt -m amass -passive -o .tmp/amass_axiom.txt $AXIOM_EXTRA_ARGS 2>>"$LOGFILE" &>/dev/null- [[ $RUNSUBFINDER == true ]] && axiom-scan .tmp/amass_temp_axiom.txt -m subfinder -all -silent -o .tmp/subfinder_axiom.txt $AXIOM_EXTRA_ARGS 2>>"$LOGFILE" &>/dev/null- cat .tmp/amass_axiom.txt .tmp/subfinder_axiom.txt 2>>"$LOGFILE" | anew -q .tmp/amass_psub.txt+ [[ $RUNAMASS == true ]] && axiom-scan .tmp/amass_temp_axiom.txt -m amass -passive -o .tmp/amass_psub.txt $AXIOM_EXTRA_ARGS 2>>"$LOGFILE" &>/dev/null+ [[ $RUNSUBFINDER == true ]] && axiom-scan .tmp/amass_temp_axiom.txt -m subfinder -all -silent -o .tmp/subfinder_psub.txt $AXIOM_EXTRA_ARGS 2>>"$LOGFILE" &>/dev/nullfiif [ -s "${GITHUB_TOKENS}" ]; thenif [ "$DEEP" = true ]; then@@ -398,6 +397,7 @@ function sub_passive(){fiif [ "$INSCOPE" = true ]; thencheck_inscope .tmp/amass_psub.txt 2>>"$LOGFILE" &>/dev/null+ check_inscope .tmp/subfinder_psub.txt 2>>"$LOGFILE" &>/dev/nullcheck_inscope .tmp/github_subdomains_psub.txt 2>>"$LOGFILE" &>/dev/nullcheck_inscope .tmp/gitlab_subdomains_psub.txt 2>>"$LOGFILE" &>/dev/nullfi