2023-12-04 16:55:41 +01:00
|
|
|
.TH PB 1 "04 December 2023" "v2023.12.04"
|
2018-10-10 02:32:36 +02:00
|
|
|
|
2018-08-15 05:42:09 +02:00
|
|
|
.SH NAME
|
|
|
|
pb \- a helper utility for using 0x0 pastebin services
|
2018-10-10 02:32:36 +02:00
|
|
|
|
2018-08-15 05:42:09 +02:00
|
|
|
.SH SYNOPSIS
|
2018-10-10 02:44:27 +02:00
|
|
|
.B pb
|
2020-10-27 02:59:49 +01:00
|
|
|
[-fucvh] [-s server_endpoint] [-e bin_extension]
|
2018-08-15 05:42:09 +02:00
|
|
|
.P
|
2018-10-10 02:32:36 +02:00
|
|
|
|
2018-08-15 05:42:09 +02:00
|
|
|
.SH DESRIPTION
|
|
|
|
.B 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.
|
2018-10-10 02:32:36 +02:00
|
|
|
|
|
|
|
Data input can be provided as an argument or via stdin.
|
2022-11-03 17:57:07 +01:00
|
|
|
The data will be processed as binary or text
|
|
|
|
based on the context.
|
2018-10-10 02:32:36 +02:00
|
|
|
|
|
|
|
The options are as follows:
|
|
|
|
|
2018-08-15 05:42:09 +02:00
|
|
|
.TP
|
|
|
|
.B -f
|
2018-10-10 02:32:36 +02:00
|
|
|
Explicitly interpret stdin as filename or names.
|
2018-08-15 05:42:09 +02:00
|
|
|
.TP
|
2018-10-10 02:40:54 +02:00
|
|
|
.BI -s " server_address"
|
2018-10-10 02:32:36 +02:00
|
|
|
Use alternative pastebin server address.
|
2018-08-15 05:42:09 +02:00
|
|
|
.TP
|
2020-10-27 02:48:46 +01:00
|
|
|
.BI -e " bin_extension"
|
|
|
|
Specifes the file extension used in the upload of binary content passed to
|
|
|
|
.B pb
|
|
|
|
via standard input.
|
2018-10-10 02:21:18 +02:00
|
|
|
.TP
|
2018-08-16 02:48:51 +02:00
|
|
|
.B -c
|
2018-10-10 02:32:36 +02:00
|
|
|
Pretty color output.
|
2018-08-16 02:48:51 +02:00
|
|
|
.TP
|
2018-08-15 05:42:09 +02:00
|
|
|
.B -v
|
|
|
|
Display current version information.
|
|
|
|
.TP
|
|
|
|
.B -h
|
|
|
|
Show the help.
|
2018-10-10 02:32:36 +02:00
|
|
|
|
2018-10-10 02:40:54 +02:00
|
|
|
.SH EXIT STATUS
|
|
|
|
The
|
|
|
|
.B pb
|
|
|
|
utility exits 0 on success, and >0 if an error occurs.
|
|
|
|
|
2018-10-10 02:32:36 +02:00
|
|
|
.SH EXAMPLES
|
|
|
|
.TP
|
|
|
|
.B pb scores.txt
|
|
|
|
Upload 'scores.txt' to the pastebin
|
|
|
|
.TP
|
2020-01-20 15:39:00 +01:00
|
|
|
.B pb < script.sh
|
|
|
|
Upload executable 'script.sh' as plain text to the pastebin
|
|
|
|
.TP
|
2018-10-10 02:32:36 +02:00
|
|
|
.B echo 'Secret info' | pb
|
|
|
|
Upload piped output to the pastebin
|
|
|
|
.TP
|
|
|
|
.B find . -type f -name '*.js' -print | pb -f
|
|
|
|
Upload a list of files to the pastebin individually
|
2020-01-20 15:33:57 +01:00
|
|
|
.TP
|
2018-10-10 02:32:36 +02:00
|
|
|
.B pb -s http://0x0.st scores.txt
|
|
|
|
Upload a file to a different pastebin endpoint
|
|
|
|
.TP
|
2020-10-27 02:51:01 +01:00
|
|
|
.B curl -s https://some/image/file.png | pb -e "png"
|
|
|
|
Download a binary file and re-upload it to the pastebin with an explicit binary
|
|
|
|
type and extension.
|
2018-10-10 02:32:36 +02:00
|
|
|
|
2018-08-15 05:42:09 +02:00
|
|
|
.SH BUGS
|
2018-10-10 02:32:36 +02:00
|
|
|
Report issues at the git repository at
|
|
|
|
.B https://tildegit.org/tomasino/pb
|
|
|
|
|
2018-08-15 05:42:09 +02:00
|
|
|
.SH AUTHOR
|
2020-06-11 00:48:37 +02:00
|
|
|
James Tomasino <james (at) tomasino (dot) org>
|