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:
		
							parent
							
								
									10ca071b99
								
							
						
					
					
						commit
						7904d4dfc4
					
				
					 6 changed files with 11 additions and 11 deletions
				
			
		
							
								
								
									
										2
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
										
									
									
									
								
							|  | @ -48,7 +48,7 @@ $(TARGET).1: $(TARGET).1.md | |||
| 	@sed "s/{VERSION}/$(VERSION)/g" $(TARGET).1.md | pandoc -s -t man -o $@ | ||||
| 
 | ||||
| ADDR = 127.0.0.1 | ||||
| PORT = 8888 | ||||
| PORT = 9999 | ||||
| 
 | ||||
| cgi: cgi/feuille.cgi | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										10
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
										
									
									
									
								
							|  | @ -50,11 +50,11 @@ logs like this: | |||
| 
 | ||||
| ```console | ||||
| // sending text | ||||
| $ echo Hello, World! | nc heimdall.pm 8888 | ||||
| $ echo Hello, World! | nc heimdall.pm 9999 | ||||
| https://bin.heimdall.pm/abcd | ||||
| 
 | ||||
| // sending files | ||||
| $ cat feuille.c | nc heimdall.pm 8888 | ||||
| $ cat feuille.c | nc heimdall.pm 9999 | ||||
| https://bin.heimdall.pm/efgh | ||||
| ``` | ||||
| 
 | ||||
|  | @ -80,7 +80,7 @@ You'll need `gpg` for this. `-c` means encryption using a password, | |||
| 
 | ||||
| ```console | ||||
| $ 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 | ||||
| ``` | ||||
| 
 | ||||
|  | @ -99,8 +99,8 @@ Guess what? We made aliases! | |||
| Put those into your `~/.{ba,z,k}shrc`: | ||||
| 
 | ||||
| ```sh | ||||
| alias pst="nc heimdall.pm 8888" | ||||
| alias spst="gpg -cao tmp.pgp && cat tmp.pgp | nc heimdall.pm 8888 && rm tmp.pgp" | ||||
| alias pst="nc heimdall.pm 9999" | ||||
| alias spst="gpg -cao tmp.pgp && cat tmp.pgp | nc heimdall.pm 9999 && rm tmp.pgp" | ||||
| ``` | ||||
| 
 | ||||
| Now, you can use **feuille** like this: | ||||
|  |  | |||
|  | @ -59,7 +59,7 @@ Default: \f[V]4\f[R] (Maximum: \f[V]254\f[R]) | |||
| .TP | ||||
| \f[B]-p port\f[R] | ||||
| 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 | ||||
| \f[B]-o path\f[R] | ||||
| Sets the path where \f[B]feuille\f[R] will output the pastes (and | ||||
|  |  | |||
|  | @ -44,7 +44,7 @@ and IPv6 addresses (won't work on OpenBSD). | |||
| 
 | ||||
| **-p port** | ||||
| : Sets the port that **feuille** will listen on. | ||||
| : Default: `8888` | ||||
| : Default: `9999` | ||||
| 
 | ||||
| **-o path** | ||||
| : Sets the path where **feuille** will output the pastes (and chroot, | ||||
|  |  | |||
|  | @ -44,7 +44,7 @@ Settings settings = { | |||
| 
 | ||||
|     .id_length           = 4, | ||||
|     .worker_count        = 1, | ||||
|     .port                = 8888, | ||||
|     .port                = 9999, | ||||
|     .timeout             = 4, | ||||
|     .max_size            = 2097152, /* = 2MiB   = 1024 * 1024 * 2 */ | ||||
|     .buffer_size         = 131072,  /* = 128KiB = 1024 * 128      */ | ||||
|  |  | |||
|  | @ -1,5 +1,5 @@ | |||
| NC="nc" | ||||
| BIN="heimdall.pm" | ||||
| 
 | ||||
| alias pst="$NC $BIN 8888" | ||||
| alias spst="gpg -cao /tmp/paste.pgp && cat /tmp/paste.pgp | $NC $BIN 8888 && rm /tmp/paste.pgp" | ||||
| alias pst="$NC $BIN 9999" | ||||
| alias spst="gpg -cao /tmp/paste.pgp && cat /tmp/paste.pgp | $NC $BIN 9999 && rm /tmp/paste.pgp" | ||||
|  |  | |||
		Reference in a new issue
	
	 Tom MTT
						Tom MTT