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

Fix S3bucket count notification

Vivek Perkawar0efd4d0a50be
diff --git a/reconftw.sh b/reconftw.sh
index df13c3e..d9e1f2c 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -737,11 +737,11 @@ function s3buckets(){
NUMOFLINES1=$(cat .tmp/output_cloud.txt 2>>"$LOGFILE" | sed '/^#/d' | sed '/^$/d' | anew subdomains/cloud_assets.txt | wc -l)
if [ "$NUMOFLINES1" -gt 0 ]; then
- notification "${NUMOFLINES} new cloud assets found" info
+ notification "${NUMOFLINES1} new cloud assets found" info
fi
- NUMOFLINES2=$(cat .tmp/s3buckets.txt 2>>"$LOGFILE" | anew subdomains/s3buckets.txt | wc -l)
+ NUMOFLINES2=$(cat .tmp/s3buckets.txt 2>>"$LOGFILE" | awk 'NF' | anew subdomains/s3buckets.txt | wc -l)
if [ "$NUMOFLINES2" -gt 0 ]; then
- notification "${NUMOFLINES} new S3 buckets found" info
+ notification "${NUMOFLINES2} new S3 buckets found" info
fi
if [ "$BBRF_CONNECTION" = true ]; then