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/b452cc3e1aa99cfeba764e70b5a26dc8 to your computer and use it in GitHub Desktop.
Save random-robbie/b452cc3e1aa99cfeba764e70b5a26dc8 to your computer and use it in GitHub Desktop.
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