Skip to content

Instantly share code, notes, and snippets.

View ysangkok's full-sized avatar

Janus Troelsen ysangkok

View GitHub Profile
#!/bin/bash
FILEID=$(dd status=none if=/dev/urandom bs=1k count=1 | curl -s --data-urlencode cryptofile@- -d metadata=metadata -d deletepassword=passwd "https://hushfile.it/api/upload" | python3 -c "import sys; import json; print(json.loads(sys.stdin.read())['fileid'])")
curl -s "https://hushfile.it/api/file?fileid=$FILEID" | wc -c