Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cristianzsh/pystebin

Your own command line based pastebin server in Python
https://github.com/cristianzsh/pystebin

cli command-line-tool curl netcat networking paste pastebin pastebin-service python python3

Last synced: 5 days ago
JSON representation

Your own command line based pastebin server in Python

Awesome Lists containing this project

README

        

# pystebin
Your own command line based pastebin server in Python

#### How to use

Start the server:
```
$ sudo python3 pystebin.py
```

Use Netcat along with ```cat``` or ```echo``` to send data to server:
```
$ echo "Hello world!" | nc SERVER 9090
$ cat some_file | nc SERVER 9090
```

The server is configured to return a 5 digit string with the stored file ID. Use ```curl``` to see the contents:
```
$ curl http://SERVER/ACB5X
```