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

s3scanner... again

six2dez0b0d426e9d24
diff --git a/reconftw.sh b/reconftw.sh
index 952f539..b47a48d 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -588,7 +588,7 @@ function s3buckets(){
if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$S3BUCKETS" = true ]
then
start_func "AWS S3 buckets search"
- eval s3scanner subdomains/subdomains.txt -o .tmp/s3buckets.txt $DEBUG_STD
+ eval s3scanner scan --buckets-file subdomains/subdomains.txt $DEBUG_ERROR | grep -iv "not_exist" | anew -q .tmp/s3buckets.txt
NUMOFLINES=$(eval cat .tmp/s3buckets.txt $DEBUG_ERROR | anew subdomains/s3buckets.txt | wc -l)
if [ "$NUMOFLINES" -gt 0 ]; then
notification "${NUMOFLINES} new S3 buckets found" info
diff --git a/reconftw_axiom.sh b/reconftw_axiom.sh
index eac3dd9..3034550 100755
--- a/reconftw_axiom.sh
+++ b/reconftw_axiom.sh
@@ -588,7 +588,7 @@ function s3buckets(){
if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$S3BUCKETS" = true ]
then
start_func "AWS S3 buckets search"
- eval s3scanner subdomains/subdomains.txt -o .tmp/s3buckets.txt $DEBUG_STD
+ eval s3scanner scan --buckets-file subdomains/subdomains.txt $DEBUG_ERROR | grep -iv "not_exist" | anew -q .tmp/s3buckets.txt
#eval axiom-scan subdomains/subdomains.txt -m s3scanner -o .tmp/s3buckets.txt $DEBUG_STD
NUMOFLINES=$(eval cat .tmp/s3buckets.txt $DEBUG_ERROR | anew subdomains/s3buckets.txt | wc -l)
if [ "$NUMOFLINES" -gt 0 ]; then