SocksBin
Command line pastebin for sharing files and command outputs.
How to use
Requirements
To use this, you'll need a tool called netcat. Try typing 'nc' or 'netcat' into the terminal, you probably have it already !
Client Side
- Self-Explanatory examples using the public server
echo "Hello World !" | nc magnum.wtf 6969
cat "script.sh" | nc magnum.wtf 6969
- In case you started the server on localhost
df | nc localhost 9999
You will receive a url to the text-only paste as a response to the above commands. e.g.
https://socksbin.magnum.wtf/33fdd867
This has a built-in Pygment-based beautifier. add "_color" to the end of the received url, to get a beautified paste.
https://socksbin.magnum.wtf/33fdd867_color
In case your text isn't beautified, include the shebang #! which is the first two bytes of an executable
e.g. the first line should be #! /usr/bin/env python for proper python formatting
Cool stuff
Make this much easier to use by adding an alias to your rc file. For example:
skb alias
Linux (Bash):
echo 'alias skb="nc magnum.wtf 6969"' >> .bashrc
macOS:
echo 'alias skb="nc magnum.wtf 9999"' >> .bash_profile
Copy output to clipboard
Linux (Bash):
echo 'alias tbc="netcat termbin.com 9999 | xclip -selection c"' >> .bashrc
echo less typing now! | tbc
macOS:
echo 'alias tbc="nc termbin.com 9999 | pbcopy"' >> .bash_profile
echo less typing now! | tbc
Remember to reload the shell with source ~/.bashrc or source ~/.bash_profile after adding any of provided above!