Created
December 29, 2017 11:19
-
-
Save random-robbie/b0c8603e55e22b21c49fd80072392873 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "[*] Now Checking for Open S3 Buckets for listing dirs....[*]" | |
aws s3 ls s3://$1 --acl public-read >/dev/null 2>/dev/null | |
RESULT=$? | |
if [ $RESULT -eq 0 ]; then | |
echo "[*] Bucket has Dirlistings Enabled [*]" | |
echo "[*] Bucket has Dirlistings Enabled https://$1.s3.amazonaws.com [*]" >> /home/tools/mass-bounty/s3-results/$1-dirlistings.txt | |
else | |
echo "[*] Failed to list to bucket: $1 [*]" | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment