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 enhancements

Vivek Perkawar50ceb41f4869
diff --git a/reconftw.sh b/reconftw.sh
index d9e1f2c..311097a 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -656,7 +656,7 @@ function sub_recursive(){
#eval rm -rf .tmp/brute_recursive_wordlist.txt 2>>"$LOGFILE"
#eval rm -rf .tmp/permute*.txt 2>>"$LOGFILE"
else
- end_subfunc "Skipping Recursive BF: Too Many Subdomains or skipped in config file" ${FUNCNAME[0]}
+ end_subfunc "skipped in this mode or defined in reconftw.cfg" ${FUNCNAME[0]}
fi
NUMOFLINES=$(cat .tmp/passive_recurs_tmp.txt .tmp/permute_recursive.txt .tmp/brute_recursive.txt 2>>"$LOGFILE" | grep "\.$domain$\|^$domain$" | anew subdomains/subdomains.txt | wc -l)
end_subfunc "${NUMOFLINES} new subs (recursive)" ${FUNCNAME[0]}
@@ -735,7 +735,7 @@ function s3buckets(){
keyword=${domain%%.*}
python3 ~/Tools/cloud_enum/cloud_enum.py -k $keyword -qs -l .tmp/output_cloud.txt 2>>"$LOGFILE" &>/dev/null
- NUMOFLINES1=$(cat .tmp/output_cloud.txt 2>>"$LOGFILE" | sed '/^#/d' | sed '/^$/d' | anew subdomains/cloud_assets.txt | wc -l)
+ NUMOFLINES1=$(cat .tmp/output_cloud.txt 2>>"$LOGFILE" | awk 'NF' | anew subdomains/cloud_assets.txt | wc -l)
if [ "$NUMOFLINES1" -gt 0 ]; then
notification "${NUMOFLINES1} new cloud assets found" info
fi