From 1e5b6c4ed49e83d7ec87be592991f4bc152926d6 Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Sat, 10 Feb 2024 15:08:16 +1100 Subject: [PATCH] ncat: add examples (#12226) * ncat: add examples --------- Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna --- pages/linux/ncat.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pages/linux/ncat.md b/pages/linux/ncat.md index 569cd83657..248354c358 100644 --- a/pages/linux/ncat.md +++ b/pages/linux/ncat.md @@ -1,7 +1,8 @@ # ncat -> Use the normal `cat` functionality over networks. -> More information: . +> Read, write, redirect, and encrypt data across a network. +> An alternative implementation of a similar utility called `netcat`/`nc`. +> More information: . - Listen for input on the specified port and write it to the specified file: @@ -14,3 +15,15 @@ - Write output of specified file to the specified host on the specified port: `ncat {{address}} {{port}} < {{path/to/file}}` + +- Accept multiple incoming connections on an encrypted channel evading detection of traffic content: + +`ncat --ssl -k -l {{port}}` + +- Connect to an open `ncat` connection over SSL: + +`ncat --ssl {{host}} {{port}}` + +- Check connectivity to a remote host on a particular port with timeout: + +`ncat -w {{seconds}} -vz {{host}} {{port}}`