Skip to content

Instantly share code, notes, and snippets.

@prologic
Created July 31, 2016 09:32
Show Gist options
  • Save prologic/9e9524b427fd020f5d8ece977ac2a5e7 to your computer and use it in GitHub Desktop.
Save prologic/9e9524b427fd020f5d8ece977ac2a5e7 to your computer and use it in GitHub Desktop.
Demo Gopher upload/download service
$ echo "EXEC:upload" | nc localhost 70
iUpload: cat filename | nc -c localhost 52162 error.host 1
iDownload: gopher://127.0.0.1:70/9/files/rvv6Y5wE7hUppGCAkukWXg error.host 1
.
$ cat README.md | nc -c localhost 52162
$ md5sum README.md
fb8b63ff9eedda78da3e542bea7da746
$ md5sum <(curl -q -s -o - gopher://127.0.0.1:70/9/files/rvv6Y5wE7hUppGCAkukWXg)
fb8b63ff9eedda78da3e542bea7da746
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment