flyingcakes 57b09ed80a Abstract
Signed-off-by: Snehit Sah <snehitsah@protonmail.com>
2021-10-29 18:24:03 +05:30
2021-10-29 18:24:03 +05:30
2021-10-25 21:13:44 +05:30
2021-10-25 21:13:44 +05:30
2021-10-25 21:13:44 +05:30
2021-10-25 21:15:17 +05:30
2021-10-29 17:57:35 +05:30

pasta

A cli based pastebin in Rust, but very insecure

Use nightly toolchain to build

rustup override set nightly

When this program is running, you can use curl to post data.

Assuming the address is 0.0.0.0 and port is 8000, you can do the following:

Posting data

curl --data-binary value="$(cat /path/to/file)"  http://0.0.0.0:8000

This prints a code that can be used to retrieve your file.

Retrieving files

Visit http://address:port/code from a web browser, or send a get request to the link. Assuming the code obtained from submitting your data was GaFH, visit http://0.0.0.0:8000/GaFH from a web browser or send a simple get request.

curl http://0.0.0.0:8000/GaFH

Files are stored to disk, so they presist even after application restart.

S
Description
A cli pastebin in Rust
Readme MIT 38 KiB
Languages
Rust 100%