updates nc completions

This commit is contained in:
exploide 2020-03-29 11:52:00 +02:00 committed by Fabian Homborg
parent edad6aa607
commit f7eb3afa11

View file

@ -1,25 +1,51 @@
# NetCat completions for fish complete -c nc -d "Remote hostname" -x -a "(__fish_print_hostnames)"
# By James Stanley
complete -r -c nc -d "Remote hostname" -a "(__fish_print_hostnames)" complete -c nc -s 4 -d "Use IPv4 only"
complete -r -c nc -s c -d "Same as -e, but use /bin/sh" complete -c nc -s 6 -d "Use IPv6 only"
complete -r -c nc -s e -d "Program to execute after connection" complete -c nc -s U -l unixsock -d "Use Unix domain sockets only"
complete -c nc -s b -d "Allow broadcasts" complete -c nc -l vsock -d "Use vsock sockets only"
complete -r -c nc -s g -d "Source-routing hop points" complete -c nc -s C -l crlf -d "Use CRLF for EOL sequence"
complete -r -c nc -s G -d "Source-routing pointer" complete -c nc -s c -l sh-exec -x -d "Executes the given command via /bin/sh"
complete -c nc -s e -l exec -F -d "Executes the given command"
complete -c nc -l lua-exec -F -d "Executes the given Lua script"
complete -c nc -s g -x -d "Loose source routing hop points"
complete -c nc -s G -x -d "Loose source routing hop pointer"
complete -c nc -s m -l max-conns -x -d "Maximum simultaneous connections"
complete -c nc -s h -d "Show help" complete -c nc -s h -d "Show help"
complete -r -c nc -s i -d "Delay interval for lines sent, ports scaned" complete -c nc -s d -l delay -x -d "Wait between read/writes"
complete -c nc -s k -d "Set keepalive option" complete -c nc -s o -l output -F -d "Dump session data to a file"
complete -c nc -s l -d "Listen mode, acts as a server" complete -c nc -s x -l hex-dump -F -d "Dump session data as hex to a file"
complete -c nc -s n -d "Numeric-only IP addresses, no DNS" complete -c nc -s i -l idle-timeout -x -d "Idle read/write timeout"
complete -r -c nc -s o -d "Hex dump of traffic" complete -c nc -s p -l source-port -x -d "Specify source port to use"
complete -r -c nc -s p -d "Local port number" complete -c nc -s s -l source -x -d "Specify source address"
complete -c nc -s r -d "Randomize local and remote ports" complete -c nc -s l -l listen -d "Bind and listen for incoming connections"
complete -r -c nc -s q -d "Quit after EOF on stdin and delay of secs" complete -c nc -s k -l keep-open -d "Accept multiple connections in listen mode"
complete -r -c nc -s s -d "Local source address" complete -c nc -s n -l nodns -d "Do not resolve hostnames via DNS"
complete -c nc -s t -d "Answer Telnet negotiation" complete -c nc -s t -l telnet -d "Answer Telnet negotiation"
complete -c nc -s u -d "UDP Mode" complete -c nc -s u -l udp -d "Use UDP instead of default TCP"
complete -c nc -s v -d "Verbose, use twice to be more verbose" complete -c nc -l sctp -d "Use SCTP instead of default TCP"
complete -r -c nc -s w -d "Timeout for connects and final net reads" complete -c nc -s v -l verbose -d "Set verbosity level"
complete -r -c nc -s x -d "Set Type of Service" complete -c nc -s w -l wait -x -d "Connect timeout"
complete -c nc -s z -d "No I/O - used for scanning" complete -c nc -s z -d "Zero-I/O mode, report connection status only"
complete -c nc -l append-output -d "Append rather than clobber specified output files"
complete -c nc -l send-only -d "Only send data, ignoring received"
complete -c nc -l recv-only -d "Only receive data, never send anything"
complete -c nc -l no-shutdown -d "Continue half-duplex when receiving EOF"
complete -c nc -l allow -x -d "Allow only given hosts to connect"
complete -c nc -l allowfile -F -d "A file of hosts allowed to connect"
complete -c nc -l deny -x -d "Deny given hosts from connecting"
complete -c nc -l denyfile -F -d "A file of hosts denied from connecting"
complete -c nc -l broker -d "Enable connection brokering mode"
complete -c nc -l chat -d "Start a simple chat server"
complete -c nc -l proxy -x -d "Specify address of host to proxy through"
complete -c nc -l proxy-type -x -a "http socks4 socks5" -d "Specify proxy type"
complete -c nc -l proxy-auth -x -d "Authenticate with HTTP or SOCKS proxy"
complete -c nc -l proxy-dns -x -a "local remote both none" -d "Specify where to resolve proxy destination"
complete -c nc -l ssl -d "Connect or listen with SSL"
complete -c nc -l ssl-cert -F -d "Specify SSL certificate file"
complete -c nc -l ssl-key -F -d "Specify SSL private key"
complete -c nc -l ssl-verify -d "Verify trust and domain name of certificates"
complete -c nc -l ssl-trustfile -F -d "PEM file containing trusted SSL certificates"
complete -c nc -l ssl-ciphers -x -d "Cipherlist containing SSL ciphers to use"
complete -c nc -l ssl-alpn -x -d "ALPN protocol list to use"
complete -c nc -l version -d "Display version information"