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

S3 buckets check

six2deza493ae25eddb
diff --git a/install.sh b/install.sh
index c547bba..88a1846 100755
--- a/install.sh
+++ b/install.sh
@@ -55,6 +55,7 @@ repos["massdns"]="blechschmidt/massdns"
repos["OpenRedireX"]="devanshbatham/OpenRedireX"
repos["GitDorker"]="obheda12/GitDorker"
repos["testssl"]="drwetter/testssl.sh"
+repos["S3Scanner"]="sa7mon/S3Scanner"
dir=${tools}
diff --git a/reconftw.cfg b/reconftw.cfg
index 81a57b6..9ba9b61 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -57,6 +57,7 @@ SUBSCRAPING=true
SUBPERMUTE=true
SUBTAKEOVER=true
ZONETRANSFER=true
+S3BUCKETS=true
# Web detection
WEBPROBESIMPLE=true
diff --git a/reconftw.sh b/reconftw.sh
index b143ccf..46d8ee4 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -491,9 +491,28 @@ function zonetransfer(){
then
start_func "Zone transfer check"
python3 $tools/dnsrecon/dnsrecon.py -d $domain -a > webs/zonetransfer.txt
- end_func "Results are saved in webs/zonetransfer.txt" ${FUNCNAME[0]}
+ end_func "Results are saved in subdomains/zonetransfer.txt" ${FUNCNAME[0]}
else
- if [ "$SPRAY" = false ]; then
+ if [ "$ZONETRANSFER" = false ]; then
+ printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n\n"
+ else
+ printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"
+ fi
+ fi
+}
+
+function s3buckets(){
+ if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$S3BUCKETS" = true ]
+ then
+ start_func "AWS S3 buckets search"
+ eval python3 $tools/S3Scanner/s3scanner.py subdomains/subdomains.txt -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
+ notification "${NUMOFLINES} new S3 buckets found in ${runtime}" good
+ fi
+ end_func "Results are saved in subdomains/s3buckets.txt" ${FUNCNAME[0]}
+ else
+ if [ "$S3BUCKETS" = false ]; then
printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n\n"
else
printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"
@@ -1142,7 +1161,7 @@ function 4xxbypass(){
cat .tmp/dirdar.txt | sed -e '1,12d' | sed '/^$/d' | anew -q vulns/4xxbypass.txt
end_func "Results are saved in vulns/4xxbypass.txt" ${FUNCNAME[0]}
else
- if [ "$SPRAY" = false ]; then
+ if [ "$BYPASSER4XX" = false ]; then
printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n\n"
else
printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"
diff --git a/requirements.txt b/requirements.txt
index ed1496b..3eef29f 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -39,4 +39,8 @@ lxml==4.6.2
uvloop==0.15.2
PySocks==1.6.8
h8mail
-argcomplete==1.10.0
\ No newline at end of file
+argcomplete==1.10.0
+awscli
+pytest-xdist
+coloredlogs
+boto3