Skip to content

Instantly share code, notes, and snippets.

@random-robbie
Created December 29, 2017 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save random-robbie/b0c8603e55e22b21c49fd80072392873 to your computer and use it in GitHub Desktop.
Save random-robbie/b0c8603e55e22b21c49fd80072392873 to your computer and use it in GitHub Desktop.
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