OpenBSD netcat

man.openbsd.org ↗

Inspect TCP and UDP connections from a terminal

SI Score
80/100
Pricing
Not confirmed
Free plan
Not confirmed
Sign-up required
Not confirmed

Ask SI about OpenBSD netcat

Answers use saved listing facts and recorded sources.

What it does

OpenBSD netcat, provided as nc, opens network connections, listens on ports and supports IPv4, IPv6 and Unix-domain sockets.

For a controlled connection, choose client or listening mode, the address family and the destination or local port. OpenBSD’s manual shows data passing between standard input and output, with -N closing the network side after input EOF. Keep timeout behavior explicit: the default is no timeout, and -w is ignored in listening mode. This implementation supports TLS and proxies, but their option combinations have restrictions; TLS cannot be combined with UDP or Unix-domain mode. The manual also warns that UDP scans using -uz always report success regardless of the target’s state. Use the manual matching the installed nc implementation, since packages called netcat can expose different flags. No command here establishes connectivity beyond its chosen endpoint and protocol.

Strengths

  • Client and listening modes
  • IPv4, IPv6 and Unix-domain sockets

Watch out for

  • Flags differ between implementations called netcat

Sources