Created
February 24, 2020 04:37
-
-
Save Moos1e/1914b15ffaab1f61e56721ee1029c2f5 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
#!/bin/bash | |
while read F ; do | |
count=$(curl $1/$F -s | grep -E "NoSuchBucket|InvalidBucketName" |wc -l) | |
if [[ $count -eq 0 ]] | |
then | |
echo "Bucket Found: "$F | |
fi | |
done < $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment