OpenBSD netcat (Debian patchlevel 1.239)
usage: nc [-46CDdFhklNnrStUuvZz] [-I length] [-i interval] [-M ttl]
[-m minttl] [-O length] [-P proxy_username] [-p source_port]
[-q seconds] [-s sourceaddr] [-T keyword] [-V rtable] [-W recvlimit]
[-w timeout] [-X proxy_protocol] [-x proxy_address[:port]]
[destination] [port]
Command Summary:
-4 Use IPv4
-6 Use IPv6
-b Allow broadcast
-C Send CRLF as line-ending
-D Enable the debug socket option
-d Detach from stdin
-F Pass socket fd
-h This help text
-I length TCP receive buffer length
-i interval Delay interval for lines sent, ports scanned
-k Keep inbound sockets open for multiple connects
-l Listen mode, for inbound connects
-M ttl Outgoing TTL / Hop Limit
-m minttl Minimum incoming TTL / Hop Limit
-N Shutdown the network socket after EOF on stdin
-n Suppress name/port resolutions
-O length TCP send buffer length
-P proxyuser Username for proxy authentication
-p port Specify local port for remote connects
-q secs quit after EOF on stdin and delay of secs
-r Randomize remote ports
-S Enable the TCP MD5 signature option
-s sourceaddr Local source address
-T keyword TOS value
-t Answer TELNET negotiation
-U Use UNIX domain socket
-u UDP mode
-V rtable Specify alternate routing table
-v Verbose
-W recvlimit Terminate after receiving a number of packets
-w timeout Timeout for connects and final net reads
-X proto Proxy protocol: "4", "4A", "5" (SOCKS) or "connect"
-x addr[:port] Specify proxy address and port
-Z DCCP mode
-z Zero-I/O mode [used for scanning]
Port numbers can be individual or ranges: lo-hi [inclusive]
Options (35)
| Option | Description | Source |
|---|
-4 | Use IPv4 | help |
-6 | Use IPv6 | help |
-b | Allow broadcast | help |
-C | Send CRLF as line-ending | help |
-D | Enable the debug socket option | help |
-d | Detach from stdin | help |
-F | Pass socket fd | help |
-h | This help text | help |
-I length | TCP receive buffer length | help |
-i interval | Delay interval for lines sent, ports scanned | help |
-k | Keep inbound sockets open for multiple connects | help |
-l | Listen mode, for inbound connects | help |
-M ttl | Outgoing TTL / Hop Limit | help |
-m minttl | Minimum incoming TTL / Hop Limit | help |
-N | Shutdown the network socket after EOF on stdin | help |
-n | Suppress name/port resolutions | help |
-O length | TCP send buffer length | help |
-P proxyuser | Username for proxy authentication | help |
-p port | Specify local port for remote connects | help |
-q secs | quit after EOF on stdin and delay of secs | help |
-r | Randomize remote ports | help |
-S | Enable the TCP MD5 signature option | help |
-s sourceaddr | Local source address | help |
-T keyword | TOS value | help |
-t | Answer TELNET negotiation | help |
-U | Use UNIX domain socket | help |
-u | UDP mode | help |
-V rtable | Specify alternate routing table | help |
-v | Verbose | help |
-W recvlimit | Terminate after receiving a number of packets | help |
-w timeout | Timeout for connects and final net reads | help |
-X proto | Proxy protocol: "4", "4A", "5" (SOCKS) or "connect" | help |
-x addr[:port | Specify proxy address and port | help |
-Z | DCCP mode | help |
-z | Zero-I/O mode [used for scanning] | help |
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.