fix: use port 9999 instead of port 8888

web crawlers were creating a shit-ton of pastebins while trying to
connect to feuille.
This commit is contained in:
Tom MTT. 2022-11-22 20:36:45 +01:00
parent 10ca071b99
commit 7904d4dfc4
6 changed files with 11 additions and 11 deletions

View file

@ -48,7 +48,7 @@ $(TARGET).1: $(TARGET).1.md
@sed "s/{VERSION}/$(VERSION)/g" $(TARGET).1.md | pandoc -s -t man -o $@ @sed "s/{VERSION}/$(VERSION)/g" $(TARGET).1.md | pandoc -s -t man -o $@
ADDR = 127.0.0.1 ADDR = 127.0.0.1
PORT = 8888 PORT = 9999
cgi: cgi/feuille.cgi cgi: cgi/feuille.cgi

View file

@ -50,11 +50,11 @@ logs like this:
```console ```console
// sending text // sending text
$ echo Hello, World! | nc heimdall.pm 8888 $ echo Hello, World! | nc heimdall.pm 9999
https://bin.heimdall.pm/abcd https://bin.heimdall.pm/abcd
// sending files // sending files
$ cat feuille.c | nc heimdall.pm 8888 $ cat feuille.c | nc heimdall.pm 9999
https://bin.heimdall.pm/efgh https://bin.heimdall.pm/efgh
``` ```
@ -80,7 +80,7 @@ You'll need `gpg` for this. `-c` means encryption using a password,
```console ```console
$ cat secret.txt | gpg -cao tmp.pgp $ cat secret.txt | gpg -cao tmp.pgp
$ cat tmp.pgp | nc heimdall.pm 8888 $ cat tmp.pgp | nc heimdall.pm 9999
https://bin.heimdall.pm/ijkl https://bin.heimdall.pm/ijkl
``` ```
@ -99,8 +99,8 @@ Guess what? We made aliases!
Put those into your `~/.{ba,z,k}shrc`: Put those into your `~/.{ba,z,k}shrc`:
```sh ```sh
alias pst="nc heimdall.pm 8888" alias pst="nc heimdall.pm 9999"
alias spst="gpg -cao tmp.pgp && cat tmp.pgp | nc heimdall.pm 8888 && rm tmp.pgp" alias spst="gpg -cao tmp.pgp && cat tmp.pgp | nc heimdall.pm 9999 && rm tmp.pgp"
``` ```
Now, you can use **feuille** like this: Now, you can use **feuille** like this:

View file

@ -59,7 +59,7 @@ Default: \f[V]4\f[R] (Maximum: \f[V]254\f[R])
.TP .TP
\f[B]-p port\f[R] \f[B]-p port\f[R]
Sets the port that \f[B]feuille\f[R] will listen on. Sets the port that \f[B]feuille\f[R] will listen on.
Default: \f[V]8888\f[R] Default: \f[V]9999\f[R]
.TP .TP
\f[B]-o path\f[R] \f[B]-o path\f[R]
Sets the path where \f[B]feuille\f[R] will output the pastes (and Sets the path where \f[B]feuille\f[R] will output the pastes (and

View file

@ -44,7 +44,7 @@ and IPv6 addresses (won't work on OpenBSD).
**-p port** **-p port**
: Sets the port that **feuille** will listen on. : Sets the port that **feuille** will listen on.
: Default: `8888` : Default: `9999`
**-o path** **-o path**
: Sets the path where **feuille** will output the pastes (and chroot, : Sets the path where **feuille** will output the pastes (and chroot,

View file

@ -44,7 +44,7 @@ Settings settings = {
.id_length = 4, .id_length = 4,
.worker_count = 1, .worker_count = 1,
.port = 8888, .port = 9999,
.timeout = 4, .timeout = 4,
.max_size = 2097152, /* = 2MiB = 1024 * 1024 * 2 */ .max_size = 2097152, /* = 2MiB = 1024 * 1024 * 2 */
.buffer_size = 131072, /* = 128KiB = 1024 * 128 */ .buffer_size = 131072, /* = 128KiB = 1024 * 128 */

View file

@ -1,5 +1,5 @@
NC="nc" NC="nc"
BIN="heimdall.pm" BIN="heimdall.pm"
alias pst="$NC $BIN 8888" alias pst="$NC $BIN 9999"
alias spst="gpg -cao /tmp/paste.pgp && cat /tmp/paste.pgp | $NC $BIN 8888 && rm /tmp/paste.pgp" alias spst="gpg -cao /tmp/paste.pgp && cat /tmp/paste.pgp | $NC $BIN 9999 && rm /tmp/paste.pgp"