1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:26:01 +02:00
tldr/pages/linux/ncat.md
Managor ae436c1b00
linux/*: add option placeholders (#16192)
* batch1

* batch2

* batch3

* batch4

* Update matchpathcon.md

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2025-04-19 21:21:53 +00:00

988 B

ncat

Read, write, redirect, and encrypt data across a network. An alternative implementation of a similar utility called netcat/nc. More information: https://nmap.org/ncat/guide/index.html.

  • Listen for input on the specified port and write it to the specified file:

ncat {{[-l|--listen]}} {{port}} > {{path/to/file}}

  • Accept multiple connections and keep ncat open after they have been closed:

ncat {{[-lk|--listen --keep-open]}} {{port}}

  • 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|--keep-open]}} {{[-l|--listen]}} {{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|--wait]}} {{seconds}} {{[-vz|--verbose -z]}} {{host}} {{port}}