aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2019-08-23 13:44:30 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2019-08-23 13:44:30 +0200
commit9c6d5ee11c203a354bcc30e43f46bdb8a077f710 (patch)
tree376b8be803915afebac6ca31ae1c05cbc9a2701a
parent409f1306dc3ce0b917408efcb4e95645477ef503 (diff)
downloadtermsend-9c6d5ee11c203a354bcc30e43f46bdb8a077f710.tar.gz
termsend-9c6d5ee11c203a354bcc30e43f46bdb8a077f710.tar.bz2
termsend-9c6d5ee11c203a354bcc30e43f46bdb8a077f710.zip
use termsend.pl site as demo site
no_ci Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r--readme.md14
-rw-r--r--termsend.12
-rw-r--r--www/aliases.md20
3 files changed, 18 insertions, 18 deletions
diff --git a/readme.md b/readme.md
index a8495f3..8ea176c 100644
--- a/readme.md
+++ b/readme.md
@@ -17,11 +17,11 @@ Client
Clients don't need any sophisticated tools. To upload to server - pipe standard
output from any application to **socat**:
-Note: **kl.bofc.pl** is demo server which you can use to play with termsend.
+Note: **termsend.pl** is demo server which you can use to play with termsend.
You can also use it like ordinary no paste service to share data with people.
```
-$ echo "test string" | socat - TCP:kl.bofc.pl:1337
+$ echo "test string" | socat - TCP:termsend.pl:1337
```
Server reads data until **FIN** is seen or string **termsend\n** at the very
@@ -31,7 +31,7 @@ version of **netcat**, you need to also append **termsend\n** at the very end
of transfer:
```
-$ echo "test string" | { cat -; echo 'termsend'; } | nc kl.bofc.pl 1337
+$ echo "test string" | { cat -; echo 'termsend'; } | nc termsend.pl 1337
```
If, for some reason, you are not able to pass **termsend\n**, you can always
@@ -42,7 +42,7 @@ the fact that you will have to wait 3 seconds after all data is sent, and you
might end up with incomplete upload when your output program stalls.
```
-$ echo "test string" | nc kl.bofc.pl 1338
+$ echo "test string" | nc termsend.pl 1338
```
### easy to use alias
@@ -53,7 +53,7 @@ tedious work.
```{.sh}
# add this to your .bashrc or .zshrc or whatever shell you use
-alias kl="socat - TCP:kl.bofc.pl:1337"
+alias kl="socat - TCP:termsend.pl:1337"
```
Now you can upload anything by simply piping it to "kl" alias. Examples
@@ -87,8 +87,8 @@ uploaded 40200 bytes
uploaded 1604104 bytes
uploaded 4668396 bytes
uploaded 4690455 bytes
-https://kl.bofc.pl/o/6p3e1
-$ curl https://kl.bofc.pl/o/6p3e1 | less
+https://termsend.pl/o/6p3e1
+$ curl https://termsend.pl/o/6p3e1 | less
```
In this example, we upload output of **make distcheck** program into server, and
diff --git a/termsend.1 b/termsend.1
index db386d1..7e311f0 100644
--- a/termsend.1
+++ b/termsend.1
@@ -86,7 +86,7 @@ This can be important, for example, when you want to upload output of
make.
.PP
.nf
- make | nc kl.bofc.pl 1338
+ make | nc termsend.pl 1338
.fi
.PP
In this situation when make does not output anything, which is not something
diff --git a/www/aliases.md b/www/aliases.md
index 7067fd1..4d336b9 100644
--- a/www/aliases.md
+++ b/www/aliases.md
@@ -26,23 +26,23 @@ Send data over unencrypted socket using **socat** program. **socat** is cool
program, as it sends **FIN** when **stdin** ends, so there is no need to
append **termsend\n** at the end of transfer.
```{.sh}
-alias kl="socat - TCP:kl.bofc.pl:1337"
+alias kl="socat - TCP:termsend.pl:1337"
```
Send data over encrypted socket using **socat** program, use this if you do not
-need to verify that you are really talking to **kl.bofc.pl** server and not
+need to verify that you are really talking to **termsend.pl** server and not
some man-in-the-middle.
```{.sh}
-alias kls="socat - OPENSSL:kl.bofc.pl:1339,verify=0"
+alias kls="socat - OPENSSL:termsend.pl:1339,verify=0"
```
Send data over encrypted socket using **socat** program and verify that
-**kl.bofc.pl** is really valid server and not man-in-the-middle. Note
-that you should treat all data sent to **kl.bofc.pl** as public and
+**termsend.pl** is really valid server and not man-in-the-middle. Note
+that you should treat all data sent to **termsend.pl** as public and
this example is usefull when you self host **termsend** and want to have really
secure socket. [termsend.crt can be downloaded here][1]
```{.sh}
-alias kls="socat - OPENSSL:kl.bofc.pl:1339,cafile=/usr/share/ca/kl.crt"
+alias kls="socat - OPENSSL:termsend.pl:1339,cafile=/usr/share/ca/kl.crt"
```
netcat
@@ -59,13 +59,13 @@ Send data over unencrypted, timed socket. Note that after all data is sent,
you will need to wait 3 seconds (or time configured on server) for server
to notice timeout to receive link.
```{.sh}
-alias kl="nc kl.bofc.pl 1338"
+alias kl="nc termsend.pl 1338"
```
Send data over unencrypted socket. This is workaround for **netcat** not
sending **FIN** packet. This will work with every flavour of **netcat**.
```{.sh}
-alias kl="{ cat -; echo 'termsend'; } | nc kl.bofc.pl 1337"
+alias kl="{ cat -; echo 'termsend'; } | nc termsend.pl 1337"
```
bash
@@ -79,7 +79,7 @@ bash
For when there is neither **socat** nor **nc** available, there almost always
is **bash** present.
```{.bash}
-alias kl="{ exec 5<>/dev/tcp/kl.bofc.pl/1337; \
+alias kl="{ exec 5<>/dev/tcp/termsend.pl/1337; \
{ cat - >&5; echo 'termsend' >&5; }; cat <&5; }"
```
@@ -95,4 +95,4 @@ Upload and store link into clipboard
alias klc="kl | tail -n1 | xclip"
```
-[1]: https://kl.bofc.pl/kl.crt
+[1]: https://termsend.pl/kl.crt