==================================( Welcome )=================================== This is a console friendly pastebin that allows binary files. No fancy website, no intermediate pages to click through, and no CAPTCHAs. Submit a file using POST, or PUT, and get a URL back. Access the URL to get your file, or share it with others. The URL generator uses readable English word combinations that are easy to remember, in case you happen to be physically running between terminals. Generated URL's are not case sensitive. This includes the UUID's and random strings. ================================================================================ ===========================( Support Free Services )============================ If you want to help us keep the lights on and the servers powered, you can buy us a coffee at https://www.buymeacoffee.com/cnet ================================================================================ ==================================( Settings )================================== Contact: pastebin@cathedral-networks.org Maximum file size: 50M Files expire after: 180 days * File expiration will be reset to 180 days every time a file is accessed. Thus, a file that is accessed more often than this will never expire. * HEAD requests are sufficient to reset the expiration: $ curl --head https://paste.c-net.org/ExampleRenew ================================================================================ ==================================( Examples )================================== Upload text using curl: $ curl -s --data 'Hello World!' 'https://paste.c-net.org/' Upload text using wget: $ wget --quiet -O- --post-data='Hello World!' 'https://paste.c-net.org/' Upload a file using curl: $ curl --upload-file '/tmp/file' 'https://paste.c-net.org/' $ curl --upload-file - 'https://paste.c-net.org/' <'/tmp/file' $ curl -s --data-binary @'/tmp/file' 'https://paste.c-net.org/' Upload a file using wget: $ wget --quiet -O- --post-file='/tmp/file' 'https://paste.c-net.org/' Upload using nc: $ echo 'Hello World!' | nc paste.c-net.org 9999 $ dmesg | nc paste.c-net.org 9999 $ nc paste.c-net.org 9999 <'/tmp/file' Upload the output of a command or script using curl: $ ls / | curl -s --data-binary @- 'https://paste.c-net.org/' $ ./bin/hello_world | curl --upload-file - 'https://paste.c-net.org/' $ ./bin/hello_world | curl -s --data-binary @- 'https://paste.c-net.org/' Get a UUID paste name that's pretty much impossible to guess: $ echo 'Hello World!' | curl -s -H "x-uuid;" --upload-file - 'https://paste.c-net.org/' https://paste.c-net.org/adcf5eaa-dead-beef-cafe-13371bff862e ...or a somewhat shorter, random string, as used by other pastebins: $ echo 'Hello World!' | curl -s -H "x-random;" --upload-file - 'https://paste.c-net.org/' https://paste.c-net.org/l33tb4rf Get a JSON response, including a delete_key: $ echo 'This can be removed later' | curl -s -H "Accept: application/json, */*" --upload-file - 'https://paste.c-net.org/' To delete the file, issue a DELETE request, putting the key in a header: $ curl -X DELETE -H "X-Delete-Key: key_goes_here" 'https://paste.c-net.org/ExamplePaste' ================================================================================ ===============================( Bash Functions )=============================== You can easily upload and download files and text using Bash functions. Put the following lines in, for instance, ~/.bashrc for your convenience: pastebin() { local url='https://paste.c-net.org/' if (( $# )); then local file for file; do curl -s \ --data-binary @"$file" \ --header "X-FileName: ${file##*/}" \ "$url" done else curl -s --data-binary @- "$url" fi } pasteget() { local url='https://paste.c-net.org/' if (( $# )); then local arg for arg; do curl -s "${url}${arg##*/}" done else local arg while read -r arg; do curl -s "${url}${arg##*/}" done fi } Usage: $ pastebin ./my/file.bin ./my/file2.bin https://paste.c-net.org/ExampleOne https://paste.c-net.org/ExampleTwo $ { printf '%s\n' "-- MY DMESG --"; dmesg; } | pastebin https://paste.c-net.org/ExampleThree $ pasteget ExampleThree -- MY DMESG -- [...] Insane usage: $ echo "This is a test." | pastebin | pasteget This is a test. ================================================================================ =========================( Privacy / Encrypted usage )========================== For sending secrets, or if you don't trust our promise not to snoop on your files, you can encrypt them before sending them to the server. 'pbenc' is a helpful script that encrypts your files with a passphrase, using the AES-256-CBC algorithm, allowing you to easily pass encrypted files to others, from the command line. Available here: https://paste.c-net.org/pbenc ================================================================================ ==============================( Terms of Service )============================== This is written in plain English, so don't pretend you didn't understand it! Don't break the law, don't post illegal shit, don't be an asshole. You know this, we know you know this, and you know we know you know. By using this service, you consent to these terms. ================================================================================ =========================( Obligatory XKCD Reference )========================== This service exists because sending files to people on the Internet should not be a daunting task of trial, error, and porn popups. See https://xkcd.com/949/ ================================================================================