Created
December 29, 2017 11:19
-
-
Save random-robbie/b452cc3e1aa99cfeba764e70b5a26dc8 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 to upload POC to....[*]" | |
aws s3 cp poc.txt s3://$1 --acl public-read >/dev/null 2>/dev/null | |
RESULT=$? | |
if [ $RESULT -eq 0 ]; then | |
echo "[*] POC Uploaded to https://$1.s3.amazonaws.com/poc.txt [*]" | |
echo "[*] POC Uploaded to https://$l.s3.amazonaws.com/poc.txt [*]" >> /home/tools/mass-bounty/s3-results/$1-uploads.txt | |
else | |
echo "[*] Failed to upload to bucket: $1 [*]" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment