0x0 pastebin utility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
creme e1cca8b092
Merge remote-tracking branch 'upstream/master'
2 weeks ago
LICENSE added readme and licens 1 year ago
Makefile Use correct tools in makefile 2 weeks ago
README.md calver badge update 1 month ago
pb Merge remote-tracking branch 'upstream/master' 1 month ago
pb.1 Merge remote-tracking branch 'upstream/master' 1 month ago
pb.d added makefile, help, and command completion 1 year ago


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


  -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


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.


sudo make uninstall


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