Skip to content

Instantly share code, notes, and snippets.

@Huntinex
Created August 26, 2022 18:53
Show Gist options
  • Save Huntinex/fa255061a37a5354f330636dee245515 to your computer and use it in GitHub Desktop.
Save Huntinex/fa255061a37a5354f330636dee245515 to your computer and use it in GitHub Desktop.
# 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