All Projects → r4sas → PBinCLI

r4sas / PBinCLI

Licence: MIT license
PrivateBin CLI on python 3

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to PBinCLI

privatebin-cli
Privatebin CLI in NodeJS.
Stars: ✭ 31 (-39.22%)
Mutual labels:  paste, privatebin
PasteServer
PasteServer to upload text or code
Stars: ✭ 29 (-43.14%)
Mutual labels:  paste
Pasteex
📋 Paste As File 把剪贴板的内容直接粘贴为文件
Stars: ✭ 634 (+1143.14%)
Mutual labels:  paste
Paste.laravel.io
The Laravel.io Pastebin.
Stars: ✭ 135 (+164.71%)
Mutual labels:  paste
Ayyhook Loader
A Free Open Source Cheat Loader
Stars: ✭ 52 (+1.96%)
Mutual labels:  paste
Markdown Img Paste
一个可以快速粘贴剪贴板里的照片到markdown的插件,并且可以设置使用七牛存储照片。
Stars: ✭ 176 (+245.1%)
Mutual labels:  paste
Scavenger
Crawler (Bot) searching for credential leaks on different paste sites.
Stars: ✭ 347 (+580.39%)
Mutual labels:  paste
org-rich-yank
📋 Rich text clipboard for org-mode: Paste as a #+BEGIN_SRC block of correct mode, with link to where it came from
Stars: ✭ 59 (+15.69%)
Mutual labels:  paste
react-gluejar
Paste images from your clipboard, declaratively
Stars: ✭ 58 (+13.73%)
Mutual labels:  paste
Feedback
Feedback & wiki for Snipaste https://snipaste.com
Stars: ✭ 1,863 (+3552.94%)
Mutual labels:  paste
Vim Paste Easy
Automatically set paste for you
Stars: ✭ 87 (+70.59%)
Mutual labels:  paste
Nekobin
Elegant and open-source pastebin service
Stars: ✭ 61 (+19.61%)
Mutual labels:  paste
Piknik
Copy/paste anything over the network.
Stars: ✭ 2,221 (+4254.9%)
Mutual labels:  paste
Clipboard Polyfill
📋 Simple copying on the web, with maximum browser compatibility.
Stars: ✭ 748 (+1366.67%)
Mutual labels:  paste
gradle-cpd-plugin
Gradle plugin to find duplicate code using PMDs copy/paste detection (= CPD).
Stars: ✭ 88 (+72.55%)
Mutual labels:  paste
Pasteme
PasteMe 是一个无需注册的文本分享平台,可以为文本设置密码和阅后即焚,支持二维码分享和各种一键复制,最大化释放你的双手,针对代码提供了额外的高亮功能。主站点已全站 CDN 以及 GZIP 传输,有着好看的前端(嘤嘤嘤)和优秀的访问速度。
Stars: ✭ 606 (+1088.24%)
Mutual labels:  paste
Spacehook
minecraft premium undeteck cheat!
Stars: ✭ 80 (+56.86%)
Mutual labels:  paste
Xcv
✂️ Cut, Copy and Paste files with Bash
Stars: ✭ 144 (+182.35%)
Mutual labels:  paste
paste
paste is a simple web app for writing & sharing code.
Stars: ✭ 62 (+21.57%)
Mutual labels:  paste
mystbin.py
A Mystb.in API wrapper!
Stars: ✭ 17 (-66.67%)
Mutual labels:  paste

GitHub license GitHub tag Codacy Badge

PBinCLI

PBinCLI is a command line client for PrivateBin written in Python 3.

Installation

Installing globally using pip3:

pip3 install pbincli

Installing with virtualenv:

python3 -m virtualenv --python=python3 venv
. venv/bin/activate
pip install pbincli

Note: if you used virtualenv installation method, don't forget to activate your virtual environment before running the tool: call . /path/to/venv/bin/activate in terminal

Configuration

By default PBinCLI is configured to use https://paste.i2pd.xyz/ for sending and receiving pastes. No proxy is used by default.

You can always create a config file to use different settings.

Configuration file is expected to be found in ~/.config/pbincli/pbincli.conf, %APPDATA%/pbincli/pbincli.conf (Windows) and ~/Library/Application Support/pbincli/pbincli.conf (MacOS)

Example of config file content

server=https://paste.i2pd.xyz/
proxy=http://127.0.0.1:3128

List of OPTIONS available

Option Default Possible value
server https://paste.i2pd.xyz/ Domain ending with slash
mirrors None Domains separated with comma, like http://privatebin.ygg/,http://privatebin.i2p/
proxy None Proxy address starting with scheme http:// or socks5://
expire 1day 5min / 10min / 1hour / 1day / 1week / 1month / 1year / never
burn False True / False
discus False True / False
format plaintext plaintext / syntaxhighlighting / markdown
short False True / False
short_api None tinyurl, clckru, isgd, vgd, cuttly, yourls, custom
short_url None Domain name of shortener service for yourls, or URL (with required parameters) for custom
short_user None Used only in yourls
short_pass None Used only in yourls
short_token None Used only in yourls
no_check_certificate False True / False
no_insecure_warning False True / False
compression zlib zlib / none

Usage

PBinCLI tool is started with pbincli command. Detailed help on command usage is provided with -h option:

pbincli {send|get|delete} -h

Sending

  • Sending text:
pbincli send -t "Hello! This is a test paste!"
  • Using stdin input to read text into a paste:
pbincli send - <<EOF
Hello! This is a test paste!
EOF
  • Sending a file with text attached into a paste:
pbincli send -f info.pdf -t "I'm sending my document."
  • Sending a file only with no text attached:
pbincli send -q -f info.pdf

Other options

It is also possible to set-up paste parameters such as "burn after reading", expiritaion time, formatting, enabling discussions and changing compression algorithm. Please refer to pbincli send -h output for more information.

Receiving

To retrieve a paste from a server, you need to use get command with the paste info.

Paste info must be formated as pasteID#Passphrase or just use full URL to a paste. Example:

pbincli get xxx#yyy                        ### receive paste xxx from https://paste.i2pd.xyz/ by default
pbincli get https://example.com/?xxx#yyy   ### receive paste xxx from https://example.com/

Deletion

To delete a paste from a server, use delete command with required -p and -t options:

pbincli delete -p xxx -t deletetoken

If you need to delete a paste on different server than the configured one, use -s option together with the instance URL.

Additional examples

Here you can find additional examples.

Usage with I2P enabled services

Change settings to set server to http://privatebin.i2p/ and proxy to http://127.0.0.1:4444. Configuration file for this example is:

server=http://privatebin.i2p/
proxy=http://127.0.0.1:4444

Using aliases

Example of alias to send a paste from stdin direclty to I2P service:

alias pastei2p="echo 'paste the text to stdin' && pbincli send -s http://privatebin.i2p/ -x http://127.0.0.1:4444 -"

Call it by running pastei2p in terminal.

License

This project is licensed under the MIT license, which can be found in the file LICENSE in the root of the project source code.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].