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

Small improvements

six2dez6da095ebb76f
diff --git a/reconftw.sh b/reconftw.sh
index 4c7d846..dad206f 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -487,8 +487,8 @@ function sub_recursive(){
if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$SUBRECURSIVE" = true ]; then
# Passive recursive
- for sub in $(cat subdomains/subdomains.txt | rev | cut -d '.' -f 3 | rev | sort | uniq -c | sort -nr | grep -v '1 ' | sed -e 's/^[[:space:]]*//' | cut -d ' ' -f 2); do
- subfinder -d $sub.$domain -all -silent &>>"$LOGFILE" | anew -q .tmp/passive_recursive.txt
+ for sub in $(cat subdomains/subdomains.txt | rev | cut -d '.' -f 3,2,1 | rev | sort | uniq -c | sort -nr | grep -v '1 ' | sed -e 's/^[[:space:]]*//' | cut -d ' ' -f 2); do
+ subfinder -d $sub -all -silent &>>"$LOGFILE" | anew -q .tmp/passive_recursive.txt
assetfinder --subs-only $sub.$domain 2>>"$LOGFILE" | anew -q .tmp/passive_recursive.txt
amass enum -passive -d $sub.$domain -config $AMASS_CONFIG &>>"$LOGFILE"
findomain --quiet -t $sub.$domain &>>"$LOGFILE" | anew -q .tmp/passive_recursive.txt
diff --git a/reconftw_axiom.sh b/reconftw_axiom.sh
index 62537d7..1cb6dfb 100755
--- a/reconftw_axiom.sh
+++ b/reconftw_axiom.sh
@@ -491,8 +491,8 @@ function sub_recursive(){
if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$SUBRECURSIVE" = true ]; then
# Passive recursive
- for sub in $(cat subdomains/subdomains.txt | rev | cut -d '.' -f 3 | rev | sort | uniq -c | sort -nr | grep -v '1 ' | sed -e 's/^[[:space:]]*//' | cut -d ' ' -f 2); do
- echo $sub.$domain | anew -q .tmp/sub_pass_recur_target.com
+ for sub in $(cat subdomains/subdomains.txt | rev | cut -d '.' -f 3,2,1 | rev | sort | uniq -c | sort -nr | grep -v '1 ' | sed -e 's/^[[:space:]]*//' | cut -d ' ' -f 2); do
+ echo $sub | anew -q .tmp/sub_pass_recur_target.com
done
axiom-scan .tmp/sub_pass_recur_target.com -m subfinder -all -o .tmp/subfinder_prec.txt &>>"$LOGFILE"
axiom-scan .tmp/sub_pass_recur_target.com -m assetfinder -o .tmp/assetfinder_prec.txt &>>"$LOGFILE"