Last active
March 5, 2021 07:55
-
-
Save kairusds/219e51798d5a840ab07b632d7db2c930 to your computer and use it in GitHub Desktop.
a fork of https://gist.github.com/gingerbeardman/5398a5feee9fa1e157b827d245678ae3 for termux
This file contains hidden or 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/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 |
This file contains hidden or 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
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