From 7e9a091b3f0f81a283cb9f3312b2ee6a1916af22 Mon Sep 17 00:00:00 2001 From: bonnie Date: Sun, 19 Jul 2020 22:32:08 +0800 Subject: [PATCH] Networking - Nc as a chat tool! --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7273844..adbdddb 100644 --- a/README.md +++ b/README.md @@ -2358,6 +2358,16 @@ nc -vw5 google.com 22 # nc: connect to google.com port 22 (tcp) failed: Network is unreachable ``` +##### Nc as a chat tool! +```bash +# From server A: +$ sudo nc -l 80 +# then you can connect to the 80 port from another server (e.g. server B): +# e.g. telent 80 +# then type sth in server B +# and you will see the result in server A! +``` + ##### Look up website information (e.g. name server), searches for an object in a RFC 3912 database. ```bash whois google.com @@ -2768,8 +2778,6 @@ while read a b; do yes $b |head -n $a ;done