1
1
mirror of https://github.com/r4sas/PBinCLI synced 2025-02-03 18:34:39 +00:00
PBinCLI/README.md

50 lines
1.0 KiB
Markdown
Raw Normal View History

2017-02-18 21:00:40 +03:00
PBinCLI
2017-02-18 21:27:24 +03:00
=====
2017-02-18 21:00:40 +03:00
#### [PrivateBin](https://github.com/PrivateBin/PrivateBin/) CLI
2017-02-18 21:27:24 +03:00
2017-02-18 21:30:56 +03:00
Installing
2017-02-18 21:27:24 +03:00
-----
2017-02-18 21:30:56 +03:00
```bash
2018-02-16 09:35:27 +03:00
$ virtualenv --python=python3 venv
2017-02-18 21:30:56 +03:00
$ . venv/bin/activate
$ pip install -r requirements.txt
```
2017-02-19 23:27:37 +03:00
2017-02-21 05:09:38 +03:00
Usage
2017-02-19 23:27:37 +03:00
-----
2017-03-02 13:09:52 +03:00
Edit variables `server`, `proxies` and `useproxy` in `pbincli/settings.py` to your values.
2017-02-21 05:12:13 +03:00
Run inside `venv` command:
2017-02-21 05:09:38 +03:00
$ ./cli send --text "Hello!"
Or use stdin input to read text for paste:
$ ./cli send - <<EOF
Hello!
This is test paste!
EOF
2017-02-21 05:09:38 +03:00
It will send string `Hello!` to PrivateBin.
To send file use `--file` or `-f` with filename. Example:
$ ./cli send -c "My document" -f info.pdf
2017-02-21 05:09:38 +03:00
To retrieve paste from server, use `get` command with paste info.
2017-02-21 05:12:13 +03:00
2017-02-21 05:09:38 +03:00
It must be formated like `pasteID#passphrase`. Example:
$ ./cli get 49eeb1326cfa9491#vfeortoVWaYeJlviDdhxQBtj5e0I2kArpynrtu/tnGs=
2017-02-21 05:09:38 +03:00
More info you can find by typing
$ ./cli [-h] {send, get, delete}
2017-03-02 14:23:05 +03:00
License
-------
This project is licensed under the DWTFYWWI license, which can be found in the file
[LICENSE](LICENSE) in the root of the project source code.