Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cristianzsh/pystebin
- Owner: cristianzsh
- License: gpl-3.0
- Created: 2019-06-28T01:36:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-29T20:55:42.000Z (over 5 years ago)
- Last Synced: 2024-11-17T08:27:40.610Z (2 months ago)
- Topics: cli, command-line-tool, curl, netcat, networking, paste, pastebin, pastebin-service, python, python3
- Language: Python
- Homepage:
- Size: 16.8 MB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```