-4 (IPv4 | Force the use of IPv4 only. | help + man |
-6 (IPv6 | Force the use of IPv6 only. | help + man |
-U, --unixsock (Use | Use Unix domain sockets rather than network sockets. | help + man |
--vsock (Use | Use AF_VSOCK sockets rather than the default TCP sockets (Linux only). | help + man |
-C, --crlf (Use | This option tells Ncat to convert LF line endings to CRLF when taking input from standard input. | help + man |
-c, --sh-exec command | Same as -e, except it tries to execute the command via /bin/sh. | help + man |
-e, --exec command | Execute the specified command after a connection has been established. | help + man |
--lua-exec filename | Runs the specified file as a Lua script after a connection has been established, using a built-in interpreter. | help + man |
-g hop1 | Sets hops for IPv4 loose source routing. | help + man |
-G n | Sets the IPv4 source route “pointer” for use with -g. | help + man |
-m, --max-conns n | The maximum number of simultaneous connections accepted by an Ncat instance. | help + man |
-h, --help (Help | Displays a short help screen with common options and parameters, and then exits. | help + man |
-d, --delay time | Set the delay interval for lines sent. | help + man |
-o, --output filename | Dump session data to a file | help + man |
-x, --hex-dump filename | Dump session data in hex to a file. | help + man |
-i, --idle-timeout time | Set a fixed timeout for idle connections. | help + man |
-p, --source-port port | Set the port number for Ncat to bind to. | help + man |
-s, --source addr | Specify source address to use (doesn't affect -l) | help + man |
-l, --listen (Listen | Listen for connections rather than connecting to a remote machine | help + man |
-k, --keep-open (Accept | Normally a listening server accepts only one connection and then quits when the connection is closed. | help + man |
-n, --nodns (Do | Completely disable hostname resolution across all Ncat options, such as the destination, source address, source routing hops, and the proxy. | help + man |
-t, --telnet (Answer | Handle DO/DONT WILL/WONT Telnet negotiations. | help + man |
-u, --udp (Use | Use UDP for the connection (the default is TCP). | help + man |
--sctp (Use | Use SCTP for the connection (the default is TCP). | help + man |
-v, --verbose (Be | Issue Ncat with -v and it will be verbose and display all kinds of useful connection based information. | help + man |
-w, --wait time | Set a fixed timeout for connection attempts. | help + man |
-z (Zero-I/O | Causes Ncat to quit immediately after establishing a connection. | help + man |
--append-output (Append | Issue Ncat with --append-ouput along with -o and/or -x and it will append the resulted output rather than truncating the specified output files. | help + man |
--send-only (Only | If this option is passed, then Ncat will only send data and will ignore anything received. | help + man |
--recv-only (Only | If this option is passed, Ncat will only receive data and will not try to send anything. | help + man |
--no-shutdown (Do | If this option is passed, Ncat will not invoke shutdown on a socket after seeing EOF on stdin. | help + man |
-q time | After EOF on stdin, wait the specified amount of time, then quit. | help + man |
--allow host | The list of hosts specified will be the only hosts allowed to connect to the Ncat process. | help + man |
--allowfile file | This has the same functionality as --allow, except that the allowed hosts are provided in a new-line delimited allow file, rather than directly on the command line. | help + man |
--deny host | Issue Ncat with a list of hosts that will not be allowed to connect to the listening Ncat process. | help + man |
--denyfile file | This is the same functionality as --deny, except that excluded hosts are provided in a new-line delimited deny file, rather than directly on the command line. | help + man |
--broker (Connection | Allow multiple parties to connect to a centralised Ncat server and communicate with each other. | help + man |
--chat (Ad-hoc | The --chat option enables chat mode, intended for the exchange of text between several users. | help + man |
--proxy addr[:port | Requests proxying through host:port, using the protocol specified by --proxy-type. | help + man |
--proxy-type type | In connect mode, this option requests the protocol proto to connect through the proxy host specified by --proxy. | help + man |
--proxy-auth auth | In connect mode, gives the credentials that will be used to connect to the proxy server. | help + man |
--proxy-dns type | In connect mode, it provides control over whether proxy destination hostnames are resolved by the remote proxy server or locally, by Ncat itself. | help + man |
--ssl (Use | In connect mode, this option transparently negotiates an SSL session with an SSL server to securely encrypt the connection. | help + man |
--ssl-cert certfile.pem | This option gives the location of a PEM-encoded certificate files used to authenticate the server (in listen mode) or the client (in connect mode). | help + man |
--ssl-key keyfile.pem | This option gives the location of the PEM-encoded private key file that goes with the certificate named with --ssl-cert. | help + man |
--ssl-verify (Verify | In client mode, --ssl-verify is like --ssl except that it also requires verification of the server certificate. | help + man |
--ssl-trustfile cert.pem | This option sets a list of certificates that are trusted for purposes of certificate verification. | help + man |
--ssl-ciphers cipherlist | This option sets the list of ciphersuites that Ncat will use when connecting to servers or when accepting SSL connections from clients. | help + man |
--ssl-servername name | In client mode, this option sets the TLS SNI (Server Name Indication) extension, which tells the server the name of the logical server Ncat is contacting. | help + man |
--ssl-alpn ALPN | This option allows you to specify a comma-separated list of protocols to send via the Application-Layer Protocol Negotiation (ALPN) TLS extension. | help + man |
--version (Display | Display Ncat's version information and exit | help + man |