Privacy aware uguu.se uploading tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

uguucho 881B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/bash
  2. LICENCE="MDYFPL v1.0"
  3. if [[ $1 == -s ]]
  4. then
  5. scrot -s /tmp/uguuscrot.png
  6. zenity --title uguucho --question --text="Are you sure you wish to upload snapshot?"
  7. if [ $? == 0 ]
  8. then
  9. OUTPUTAS=$(torsocks curl -fsSL -F files[]=@/tmp/uguuscrot.png https://uguu.se/upload.php | jq -r ".files[].url")
  10. zenity --title uguucho --info --text=$OUTPUTAS
  11. fi
  12. elif [[ $1 == -F ]]
  13. then
  14. scrot /tmp/uguuscrot.png
  15. zenity --title uguucho --question --text="Are you sure you wish to upload your _FULLSCREEEN_ screenshot?"
  16. if [ $? -eq 0 ]
  17. then
  18. OUTPUTAS=$(torsocks curl -fsSL -F files[]=@/tmp/uguuscrot.png https://uguu.se/upload.php | jq -r ".files[].url")
  19. zenity --title uguucho --info --text=$OUTPUTAS
  20. fi
  21. else
  22. OUTPUTAS=$(torsocks curl -fsSL -F files[]=@"$1" https://uguu.se/upload.php | jq -r ".files[].url")
  23. zenity --title uguucho --info --text=$OUTPUTAS
  24. fi