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
Shell bug-bountybugbountybugbounty-tooldnshackingnucleiosintpenetration-testingpentestpentest-toolpentestingreconreconnaissancescannersecuritysecurity-toolssubdomainsubdomain-enumerationvulnerabilities
S3 buckets check
six2deza493ae25eddb
diff --git a/install.sh b/install.shindex 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.cfgindex 81a57b6..9ba9b61 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -57,6 +57,7 @@ SUBSCRAPING=trueSUBPERMUTE=trueSUBTAKEOVER=trueZONETRANSFER=true+S3BUCKETS=true# Web detectionWEBPROBESIMPLE=truediff --git a/reconftw.sh b/reconftw.shindex b143ccf..46d8ee4 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -491,9 +491,28 @@ function zonetransfer(){thenstart_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 ]; thenprintf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n\n"elseprintf "${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.txtend_func "Results are saved in vulns/4xxbypass.txt" ${FUNCNAME[0]}else- if [ "$SPRAY" = false ]; then+ if [ "$BYPASSER4XX" = false ]; thenprintf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n\n"elseprintf "${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.txtindex ed1496b..3eef29f 100644--- a/requirements.txt+++ b/requirements.txt@@ -39,4 +39,8 @@ lxml==4.6.2uvloop==0.15.2PySocks==1.6.8h8mail-argcomplete==1.10.0\ No newline at end of file+argcomplete==1.10.0+awscli+pytest-xdist+coloredlogs+boto3