0x0 pastebin utility
Go to file
James Tomasino adbabea22a makefile using more standard variables and improved bash completion tests 2020-07-05 11:25:52 +00:00
LICENSE added readme and licens 2018-08-14 23:28:59 -04:00
Makefile makefile using more standard variables and improved bash completion tests 2020-07-05 11:25:52 +00:00
README.md bsd install instructions added 2020-06-10 22:53:17 +00:00
pb option errors show usage 2020-06-10 22:36:56 +00:00
pb.1 removing erroneous standards language 2020-06-10 22:48:37 +00:00
pb.d added makefile, help, and command completion 2018-08-14 23:42:09 -04:00

README.md

pb calver status license

pb is a helper utility for using 0x0 pastebin services

pb provides an easy-to-use interface for uploading images or piping output to a 0x0 pastebin service. While it comes pre-configured with a specific pastebin, the service endpoint can be overridden.

Usage Examples

Upload 'scores.txt' to the pastebin

pb scores.txt

Upload piped output to the pastebin

echo 'Secret info' | pb

Upload a list of javascript files to the pastebin individually

find . -type f -name '*.js' -print | pb -f

Upload a file to a different pastebin endpoint

pb -s http://0x0.st scores.txt

Shorten a URL

pb -u https://google.com

Options

  -h                        Show this help
  -v                        Show current version number
  -f                        Explicitly interpret stdin as filename
  -c                        Pretty color output
  -u                        Shorten URL
  -s server_address         Use alternative pastebin server address

Install

On GNU systems:

sudo make install

Note: On systems without admin access the binary can be run directly from the git repo, but will lack man support and command completion.

On BSD systems:

install 755 pb /usr/local/bin
install 644 pb /usr/local/man/man1

Uninstall

sudo make uninstall

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GPL3