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.
 
 
 

30 lines
778 B

  1. transfer.sh: Easy file sharing from the command line
  2. ===
  3. made with <3 by DutchCoders
  4. Upload:
  5. $ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
  6. Encrypt & upload:
  7. $ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
  8. Download & decrypt:
  9. $ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt
  10. Upload to virustotal:
  11. $ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal
  12. Add alias to .bashrc or .zshrc:
  13. ===
  14. transfer() {
  15. # write to output to tmpfile because of progress bar
  16. tmpfile=$( mktemp -t transfer )
  17. curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile;
  18. cat $tmpfile;
  19. rm -f $tmpfile;
  20. }
  21. alias transfer=transfer
  22. ===
  23. $ transfer test.txt