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

cloud_enum added

six2dez84b53cf87925
diff --git a/install.sh b/install.sh
index 7b23def..86312d1 100755
--- a/install.sh
+++ b/install.sh
@@ -60,6 +60,7 @@ repos["commix"]="commixproject/commix"
repos["JSA"]="w9w/JSA"
repos["AnalyticsRelationships"]="Josue87/AnalyticsRelationships"
repos["urldedupe"]="ameenmaali/urldedupe"
+repos["cloud_enum"]="initstring/cloud_enum"
dir=${tools}
double_check=false
diff --git a/reconftw.sh b/reconftw.sh
index e5e2cfe..fa33a6a 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -59,6 +59,7 @@ function tools_installed(){
[ -f "$tools/degoogle_hunter/degoogle_hunter.sh" ] || { printf "${bred} [*] degoogle_hunter [NO]${reset}\n"; allinstalled=false;}
[ -f "$tools/getjswords.py" ] || { printf "${bred} [*] getjswords [NO]${reset}\n"; allinstalled=false;}
[ -f "$tools/JSA/jsa.py" ] || { printf "${bred} [*] JSA [NO]${reset}\n"; allinstalled=false;}
+ [ -f "$tools/cloud_enum/cloud_enum.py" ] || { printf "${bred} [*] cloud_enum [NO]${reset}\n"; allinstalled=false;}
type -P dirdar &>/dev/null || { printf "${bred} [*] dirdar [NO]${reset}\n"; allinstalled=false;}
type -P github-endpoints &>/dev/null || { printf "${bred} [*] github-endpoints [NO]${reset}\n"; allinstalled=false;}
type -P github-subdomains &>/dev/null || { printf "${bred} [*] github-subdomains [NO]${reset}\n"; allinstalled=false;}
@@ -558,12 +559,22 @@ function zonetransfer(){
function s3buckets(){
if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$S3BUCKETS" = true ]; then
start_func "AWS S3 buckets search"
+
+ # S3Scanner
[ -s "subdomains/subdomains.txt" ] && s3scanner scan -f subdomains/subdomains.txt 2>>"$LOGFILE" | grep -iv "not_exist" | grep -iv "Warning:" | anew -q .tmp/s3buckets.txt
- NUMOFLINES=$(cat .tmp/s3buckets.txt 2>>"$LOGFILE" | anew subdomains/s3buckets.txt | wc -l)
- if [ "$NUMOFLINES" -gt 0 ]; then
+ # Cloudenum
+ keyword=${domain%%.*}
+ python3 ~/Tools/cloud_enum/cloud_enum.py -k $keyword -qs -l .tmp/output_cloud.txt
+
+ 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
+ fi
+ NUMOFLINES2=$(cat .tmp/s3buckets.txt 2>>"$LOGFILE" | anew subdomains/s3buckets.txt | wc -l)
+ if [ "$NUMOFLINES2" -gt 0 ]; then
notification "${NUMOFLINES} new S3 buckets found" info
fi
- end_func "Results are saved in subdomains/s3buckets.txt" ${FUNCNAME[0]}
+ end_func "Results are saved in subdomains/s3buckets.txt and subdomains/cloud_assets.txt" ${FUNCNAME[0]}
else
if [ "$S3BUCKETS" = false ]; then
printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
diff --git a/reconftw_axiom.sh b/reconftw_axiom.sh
index 126ac37..27cc3c0 100755
--- a/reconftw_axiom.sh
+++ b/reconftw_axiom.sh
@@ -59,6 +59,7 @@ function tools_installed(){
[ -f "$tools/degoogle_hunter/degoogle_hunter.sh" ] || { printf "${bred} [*] degoogle_hunter [NO]${reset}\n"; allinstalled=false;}
[ -f "$tools/getjswords.py" ] || { printf "${bred} [*] getjswords [NO]${reset}\n"; allinstalled=false;}
[ -f "$tools/JSA/jsa.py" ] || { printf "${bred} [*] JSA [NO]${reset}\n"; allinstalled=false;}
+ [ -f "$tools/cloud_enum/cloud_enum.py" ] || { printf "${bred} [*] cloud_enum [NO]${reset}\n"; allinstalled=false;}
type -P dirdar &>/dev/null || { printf "${bred} [*] dirdar [NO]${reset}\n"; allinstalled=false;}
type -P github-endpoints &>/dev/null || { printf "${bred} [*] github-endpoints [NO]${reset}\n"; allinstalled=false;}
type -P github-subdomains &>/dev/null || { printf "${bred} [*] github-subdomains [NO]${reset}\n"; allinstalled=false;}
@@ -578,13 +579,23 @@ function zonetransfer(){
function s3buckets(){
if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$S3BUCKETS" = true ]; then
start_func "AWS S3 buckets search"
+
+ # S3Scanner
axiom-scan webs/webs.txt -m s3scanner -o .tmp/s3buckets_tmp.txt 2>>"$LOGFILE" &>/dev/null
cat .tmp/s3buckets_tmp.txt | grep -iv "not_exist" | grep -iv "Warning:" | anew -q .tmp/s3buckets.txt
- NUMOFLINES=$(cat .tmp/s3buckets.txt 2>>"$LOGFILE" | anew subdomains/s3buckets.txt | wc -l)
- if [ "$NUMOFLINES" -gt 0 ]; then
+ # Cloudenum
+ keyword=${domain%%.*}
+ python3 ~/Tools/cloud_enum/cloud_enum.py -k $keyword -qs -l .tmp/output_cloud.txt
+
+ 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
+ fi
+ NUMOFLINES2=$(cat .tmp/s3buckets.txt 2>>"$LOGFILE" | anew subdomains/s3buckets.txt | wc -l)
+ if [ "$NUMOFLINES2" -gt 0 ]; then
notification "${NUMOFLINES} new S3 buckets found" info
fi
- end_func "Results are saved in subdomains/s3buckets.txt" ${FUNCNAME[0]}
+ end_func "Results are saved in subdomains/s3buckets.txt and subdomains/cloud_assets.txt" ${FUNCNAME[0]}
else
if [ "$S3BUCKETS" = false ]; then
printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
diff --git a/requirements.txt b/requirements.txt
index 1ddb3f9..0360c0b 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -19,4 +19,5 @@ s3scanner
shodan
dnspython
webscreenshot
-emailfinder
\ No newline at end of file
+emailfinder
+requests_futures
\ No newline at end of file