NAME pcopy - copy/paste across machines USAGE: cat FILE | nc [-N] nopaste.net 9999 (echo "pcopy:[FILENAME][?a=PASS][&s=1][&m=rw|ro][&t=DURATION][&f=text|json]"; cat FILE) | nc [-N] nopaste.net 9999 DESCRIPTION: This is is the netcat-endpoint for pcopy, a tool to copy/paste across machines. You may only use this endpoint to upload files from the command line. For more powerful features, use the Web UI at https://nopaste.net or use the curl endpoint by typing "curl https://nopaste.net". Examples: echo hi | nc -N nopaste.net 9999 # Copy text "hi" to random file cat hi.txt | nc -N nopaste.net 9999 # Copy file hi.txt to random file (echo pcopy:hi; cat hi.txt) | nc -N nopaste.net 9999 # Copy file hi.txt to file "hi" (echo "pcopy:?t=30m"; cat dog.jpg) | nc -N nopaste.net 9999 # Copy file dog.jpg with with 30m TTL (echo "pcopy:?s=1"; cat dog.jpg) | nc -N nopaste.net 9999 # Stream file dog.jpg to receiver (echo "pcopy:?a=mypass"; echo hi) | nc -N nopaste.net 9999 # Use password "mypass" to log in echo help | nc -N nopaste.net 9999 # Display this help page OPTIONS: FILENAME pick a remote file name; use "random" to pick a random one ?a=PASS password for the clipboard (if password-protected) ?s=1 stream data without storing on the server ?m=rw|ro defines whether to set the file mode as read-write or read-only (default: ro, allowed: ro) ?t=DURATION time-to-live after which the file will be deleted (default: 21d, nontext-max: 30d, text-max: 730d) ?f=text|json output format for PUT/POSTs (default: text) WEB UI: https://nopaste.net LIMITS: Total clipboard size limit: 2.0 GB Total number of files: max. 10000 files Per-file size limit: 2.0 MB Per-file expiration limits: 730d if text, 30d otherwise Allowed file modes: ro To find out more about pcopy, check out https://heckel.io/pcopy.