'\" t .\" Title: Ncat .\" Author: [see the "Authors" section] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 03/15/2018 .\" Manual: Ncat Reference Guide .\" Source: Ncat .\" Language: English .\" .TH "NCAT" "1" "03/15/2018" "Ncat" "Ncat Reference Guide" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ncat \- Concatenate and redirect sockets .SH "SYNOPSIS" .HP \w'\fBncat\fR\ 'u \fBncat\fR [\fIOPTIONS\fR...] [\fIhostname\fR] [\fIport\fR] .SH "DESCRIPTION" .PP Ncat is a feature\-packed networking utility which reads and writes data across networks from the command line\&. Ncat was written for the Nmap Project and is the culmination of the currently splintered family of Netcat incarnations\&. It is designed to be a reliable back\-end tool to instantly provide network connectivity to other applications and users\&. Ncat will not only work with IPv4 and IPv6 but provides the user with a virtually limitless number of potential uses\&. .PP Among Ncat\*(Aqs vast number of features there is the ability to chain Ncats together; redirection of TCP, UDP, and SCTP ports to other sites; SSL support; and proxy connections via SOCKS4, SOCKS5 or HTTP proxies (with optional proxy authentication as well)\&. Some general principles apply to most applications and thus give you the capability of instantly adding networking support to software that would normally never support it\&. .SH "OPTIONS SUMMARY" .PP .if n \{\ .RS 4 .\} .nf Ncat 7\&.70 ( https://nmap\&.org/ncat ) Usage: ncat [options] [hostname] [port] Options taking a time assume seconds\&. Append \*(Aqms\*(Aq for milliseconds, \*(Aqs\*(Aq for seconds, \*(Aqm\*(Aq for minutes, or \*(Aqh\*(Aq for hours (e\&.g\&. 500ms)\&. \-4 Use IPv4 only \-6 Use IPv6 only \-U, \-\-unixsock Use Unix domain sockets only \-C, \-\-crlf Use CRLF for EOL sequence \-c, \-\-sh\-exec Executes the given command via /bin/sh \-e, \-\-exec Executes the given command \-\-lua\-exec Executes the given Lua script \-g hop1[,hop2,\&.\&.\&.] Loose source routing hop points (8 max) \-G Loose source routing hop pointer (4, 8, 12, \&.\&.\&.) \-m, \-\-max\-conns Maximum simultaneous connections \-h, \-\-help Display this help screen \-d, \-\-delay