Skip to content

Latest commit

 

History

History
97 lines (92 loc) · 6.61 KB

cix-ncat.org

File metadata and controls

97 lines (92 loc) · 6.61 KB

ncat

|≣|

AuthorChris Gibson,
Kris Katterjohn,
Mixter,
Fyodor
Maintainer(s)
Released
Sourcenmap.svn
Homepagencat.web

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 as a much-improved reimplementation of the venerable Netcat . It uses both TCP and UDP for communication and 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.


Index

Receipts

ncat

ncat::options

OPTIONSTYPEV++V–DESCRIPTION
--allowswitchAllow only given hosts to connect to Ncat
--allowfileswitchA file of hosts allowed to connect to Ncat
--append-outputswitchAppend rather than clobber specified output files
--brokerswitchEnable Ncat’s connection brokering mode
--chatswitchStart a simple Ncat chat server
--denyswitchDeny given hosts from connecting to Ncat
--denyfileswitchA file of hosts denied from connecting to Ncat
--lua-exec <filename>stringExecutes the given Lua script
--proxy <addr[:port]>stringSpecify address of host to proxy through
--proxy-auth <auth>stringAuthenticate with HTTP or SOCKS proxy server
--proxy-type <type>stringSpecify proxy type (“http” or “socks4” or “socks5”)
--recv-onlyswitchOnly receive data, never send anything
--sctpswitchUse SCTP instead of default TCP
--send-onlyswitchOnly send data, ignoring received; quit on EOF
--sslswitchConnect or listen with SSL
--ssl-certswitchSpecify SSL certificate file (PEM) for listening
--ssl-ciphersswitchCipherlist containing SSL ciphers to use
--ssl-keyswitchSpecify SSL private key (PEM) for listening
--ssl-trustfileswitchPEM file containing trusted SSL certificates
--ssl-verifyswitchVerify trust and domain name of certificates
--versionswitchDisplay Ncat’s version information and exit
-4switchUse IPv4 only
-6switchUse IPv6 only
-C, --crlfswitchUse CRLF for EOL sequence
-G <n>intLoose source routing hop pointer (4, 8, 12, …)
-U, --unixsockswitchUse Unix domain sockets only
-c, --sh-exec <command>stringExecutes the given command via /bin/sh
-d, --delay <time>intWait between read/writes
-e, --exec <command>stringExecutes the given command
-g hop1[,hop2,...]stringLoose source routing hop points (8 max)
-h, --helpswitchDisplay this help screen
-i, --idle-timeout <time>intIdle read/write timeout
-k, --keep-openswitchAccept multiple connections in listen mode
-l, --listenswitchBind and listen for incoming connections
-m, --max-conns <n>intMaximum <n> simultaneous connections
-n, --nodnsswitchDo not resolve hostnames via DNS
-o, --output <filename>stringDump session data to a file
-p, --source-port portintSpecify source port to use
-s, --source addrstringSpecify source address to use (doesn’t affect -l)
-t, --telnetswitchAnswer Telnet negotiations
-u, --udpswitchUse UDP instead of default TCP
-v, --verboseswitchSet verbosity level (can be used several times)
-w, --wait <time>intConnect timeout
-x, --hex-dump <filename>stringDump session data as hex to a file
-zswitchZero-I/O mode, report connection status only

ncat::examples

ncat-171225235543

connect mode as a web browser:

   ~$ ncat -C scanme.nmap.org 80 </dev/null

ncat-171226015404

connect to an HTTPS server:

   ~$ ncat -C --ssl <server> 443

ncat::files

/usr/share/ncat/ca-bundle.crt.

Refreances

RFC

  • RFC 2616