Created
August 26, 2022 18:53
-
-
Save Huntinex/fa255061a37a5354f330636dee245515 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
# You can do something like this, but please don't. Don't reinvent the wheel unless your wheel is rounder. | |
# Instead, you can inspire from existing tools or even extend them! | |
s3() { | |
echo "https://$1.s3.amazonaws.com/" | |
cat ~/wordlists/s3bucket-permutation | while read pref; do | |
echo https://$pref-$1.s3.amazonaws.com/ | |
echo https://$pref-$1-s3.s3.amazonaws.com/ | |
echo https://$pref-$1-bucket.s3.amazonaws.com/ | |
echo https://$1-$pref.s3.amazonaws.com/ | |
echo https://$1$pref.s3.amazonaws.com/ | |
echo https://$pref$1.s3.amazonaws.com/ | |
done | |
} | |
googlestorage() { | |
echo "https://www.googleapis.com/storage/v1/b/$1" | |
cat ~/wordlists/s3bucket-permutation | while read pref; do | |
echo https://www.googleapis.com/storage/v1/b/$pref-$1 | |
echo https://www.googleapis.com/storage/v1/b/$pref-$1-storage | |
echo https://www.googleapis.com/storage/v1/b/$pref-$1-gstorage | |
echo https://www.googleapis.com/storage/v1/b/$1-$pref | |
echo https://www.googleapis.com/storage/v1/b/$1$pref | |
echo https://www.googleapis.com/storage/v1/b/$pref$1 | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment