Created
December 2, 2019 16:56
-
-
Save usrbinkat/fc037a26ddf86a770764c4ba425a5614 to your computer and use it in GitHub Desktop.
Hastebin Curl Bash Wrapper
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 | |
#(optional) in the format user.name:password@ (you need the @ after) | |
#password="$(< ~/.hidden_password)" | |
url="hastebin.com" | |
key="$(curl --silent --insecure --data-binary @/dev/fd/0 https://$url/documents | cut -d "\"" -f 4)" | |
echo "https://$url/$key" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment