Skip to content

Instantly share code, notes, and snippets.

@kairusds
Last active March 5, 2021 07:55
Show Gist options
  • Save kairusds/219e51798d5a840ab07b632d7db2c930 to your computer and use it in GitHub Desktop.
Save kairusds/219e51798d5a840ab07b632d7db2c930 to your computer and use it in GitHub Desktop.
#!/bin/sh
URL="https://0x0.st"
if [ $# -eq 0 ]; then
echo "Usage: 0x0.sh FILE\n"
exit 1
fi
FILE=$1
if [ ! -f "$FILE" ]; then
echo "File ${FILE} not found"
exit 1
fi
RESPONSE=$(curl -# -F "file=@${FILE}" "${URL}")
echo "${RESPONSE}" # to termina
curl https://gist.githubusercontent.com/kairusds/219e51798d5a840ab07b632d7db2c930/raw/83ed0a64015f36ad936f141d38eec03e8bb4f35e/0x0.sh | sudo tee ~/../usr/bin/0x0 && sudo chmod +x ~/../usr/bin/0x0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment