OpenBSD CVS

CVS log for src/usr.bin/nc/nc.1


[BACK] Up to [local] / src / usr.bin / nc

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.98 / (download) - annotate - [select for diffs], Mon Apr 1 12:40:18 2024 UTC (6 weeks, 5 days ago) by deraadt
Branch: MAIN
CVS Tags: HEAD
Changes since 1.97: +3 -2 lines
Diff to previous 1.97 (colored)

Mention that port can be specified as 0 in some situations, so that the
system will allocate a port.

Revision 1.97 / (download) - annotate - [select for diffs], Sun Sep 11 09:58:06 2022 UTC (20 months, 1 week ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.96: +7 -7 lines
Diff to previous 1.96 (colored)

Replace archaic \*(Lt and \*(Gt by plain < and >, respectively,
because these inspire devotion to cargo cult in developers.
Cleanup suggested by kn@.

Revision 1.96 / (download) - annotate - [select for diffs], Wed Mar 31 20:41:35 2021 UTC (3 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.95: +7 -4 lines
Diff to previous 1.95 (colored)

one of the examples needs an -N (and explanation);
diff from robert scheck

discussed with and tweaked by sthen

Revision 1.95 / (download) - annotate - [select for diffs], Wed Feb 12 14:46:36 2020 UTC (4 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.94: +6 -7 lines
Diff to previous 1.94 (colored)

Standardize argument naming for "sourceaddr" and unify the wording a bit,
similar to what deraadt@ recently did in other manual pages.

Revision 1.94 / (download) - annotate - [select for diffs], Thu Oct 24 17:27:08 2019 UTC (4 years, 6 months ago) by kn
Branch: MAIN
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored)

Service names are still resolved with -n

Just like pfctl(8)'s -N, this flag only avoid DNS;
"nc -vz ::1 socks" still works.

Fix documentation by copying pfctl's wording.

OK deraadt

Revision 1.93 / (download) - annotate - [select for diffs], Thu Dec 27 17:45:36 2018 UTC (5 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored)

too many words in previous;

Revision 1.92 / (download) - annotate - [select for diffs], Thu Dec 27 17:22:45 2018 UTC (5 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.91: +4 -4 lines
Diff to previous 1.91 (colored)

port ranges can be ambiguous with hypenated port-names.
specify that ranges must be numeric, and only check for range if
first argument is a digit.
identified by danj, fix suggest by sthen

Revision 1.91 / (download) - annotate - [select for diffs], Tue Sep 25 20:05:07 2018 UTC (5 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored)

-T applies to ip6 too, apparently;
from nan xiao

Revision 1.90 / (download) - annotate - [select for diffs], Fri Aug 17 14:33:29 2018 UTC (5 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)

spelling;

Revision 1.89 / (download) - annotate - [select for diffs], Fri Aug 17 14:03:10 2018 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.88: +126 -108 lines
Diff to previous 1.88 (colored)

Make the wording more concise, use the imperative throughout, state
more precisely which options require which other options, add many
missing incompatibilities, mention the default for -e, and some
macro cleanup.
OK jmc@ tb@

Revision 1.88 / (download) - annotate - [select for diffs], Tue Nov 28 16:59:10 2017 UTC (6 years, 5 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.87: +17 -7 lines
Diff to previous 1.87 (colored)

Allow TLS ciphers and protocols to be specified for nc(1).

Replace the "tlscompat" and "tlsall" options with "cipher" and "protocol"
options that are key/value pairs. This allows the user to specify ciphers
and protocols in a form that are accepted by tls_config_set_ciphers() and
tls_config_set_protocols() respectively.

ok beck@

(also ok jmc@ for a previous revision of the man page).

Revision 1.87 / (download) - annotate - [select for diffs], Sat Jul 15 18:11:47 2017 UTC (6 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.86: +8 -8 lines
Diff to previous 1.86 (colored)

grammar was ass backwards;

Revision 1.86 / (download) - annotate - [select for diffs], Sat Jul 15 17:27:39 2017 UTC (6 years, 10 months ago) by jsing
Branch: MAIN
Changes since 1.85: +4 -2 lines
Diff to previous 1.85 (colored)

Add a "-T tlscompat" option to nc(1), which enables the use of all TLS
protocols and "compat" ciphers. This allows for TLS connections to TLS
servers that are using less than ideal cipher suites, without having to
resort to "-T tlsall" which enables all known cipher suites.

Diff from Kyle J. McKay <mackyle at gmail dot com>

ok beck@

Revision 1.85 / (download) - annotate - [select for diffs], Wed May 10 21:56:53 2017 UTC (7 years ago) by bluhm
Branch: MAIN
Changes since 1.84: +6 -1 lines
Diff to previous 1.84 (colored)

Implement nc -W recvlimit to terminate netcat after receiving a
number of packets.  This allows to send a UDP request, receive a
reply and check the result on the command line.
input jmc@; OK millert@

Revision 1.84 / (download) - annotate - [select for diffs], Wed Apr 5 06:55:59 2017 UTC (7 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.83: +6 -6 lines
Diff to previous 1.83 (colored)

- -Z before -z in options list
- add -Z to help and usage()

Revision 1.83 / (download) - annotate - [select for diffs], Wed Apr 5 03:20:19 2017 UTC (7 years, 1 month ago) by beck
Branch: MAIN
Changes since 1.82: +7 -2 lines
Diff to previous 1.82 (colored)

Allow nc to save the peer certificate and chain in a pem file specified
with -Z
ok jsing@

Revision 1.82 / (download) - annotate - [select for diffs], Thu Feb 9 20:15:59 2017 UTC (7 years, 3 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.81: +5 -2 lines
Diff to previous 1.81 (colored)

Document that -x can take an ipv6 address enclosed in square brackets.

Revision 1.81 / (download) - annotate - [select for diffs], Thu Jan 26 22:59:55 2017 UTC (7 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored)

oscp -> ocsp;
from holger mikolon, plus one more in nc;

Revision 1.80 / (download) - annotate - [select for diffs], Sun Nov 6 14:40:37 2016 UTC (7 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.79: +4 -4 lines
Diff to previous 1.79 (colored)

tweak previous;

Revision 1.79 / (download) - annotate - [select for diffs], Sun Nov 6 13:33:30 2016 UTC (7 years, 6 months ago) by beck
Branch: MAIN
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored)

rename tlslegacy to tlsall, and better describe what it does.
ok jsing@

Revision 1.78 / (download) - annotate - [select for diffs], Sat Nov 5 16:03:09 2016 UTC (7 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored)

zap trailing whitespace, and add -o to usage() and help (-h);

Revision 1.77 / (download) - annotate - [select for diffs], Sat Nov 5 15:13:26 2016 UTC (7 years, 6 months ago) by beck
Branch: MAIN
Changes since 1.76: +8 -1 lines
Diff to previous 1.76 (colored)

Add support for server side OCSP stapling to libtls.
Add support for server side OCSP stapling to netcat.

Revision 1.76 / (download) - annotate - [select for diffs], Fri Nov 4 07:34:17 2016 UTC (7 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.75: +5 -4 lines
Diff to previous 1.75 (colored)

new sentence, new line, and zap trailing whitespace;

Revision 1.75 / (download) - annotate - [select for diffs], Fri Nov 4 05:13:13 2016 UTC (7 years, 6 months ago) by beck
Branch: MAIN
Changes since 1.74: +7 -5 lines
Diff to previous 1.74 (colored)

Add ocsp_require_stapling config option for tls - allows a connection
to indicate that it requires the peer to provide a stapled OCSP response
with the handshake.  Provide a "-T muststaple" for nc that uses it.
ok jsing@, guenther@

Revision 1.74 / (download) - annotate - [select for diffs], Sat Jul 2 05:58:00 2016 UTC (7 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.73: +4 -4 lines
Diff to previous 1.73 (colored)

do not uppercase "hop limit";

Revision 1.73 / (download) - annotate - [select for diffs], Tue Jun 28 17:35:14 2016 UTC (7 years, 10 months ago) by jca
Branch: MAIN
Changes since 1.72: +9 -2 lines
Diff to previous 1.72 (colored)

Add -M and -m options to specify the outgoing and incoming minimum TTL

Req by and ok blumh@

Revision 1.72 / (download) - annotate - [select for diffs], Thu Jun 2 04:26:32 2016 UTC (7 years, 11 months ago) by beck
Branch: MAIN
Changes since 1.71: +4 -4 lines
Diff to previous 1.71 (colored)

Let netcat support the use of service names instead of port numbers.
based on a diff from Andras Farkas <deepbluemistake@gmail.com>
ok deraadt@

Revision 1.71 / (download) - annotate - [select for diffs], Fri Sep 25 14:56:33 2015 UTC (8 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.70: +4 -12 lines
Diff to previous 1.70 (colored)

avoid trailing .Ns, reduce .Xo and .Sm, drop redundant .Bk

Revision 1.70 / (download) - annotate - [select for diffs], Sat Sep 12 07:56:56 2015 UTC (8 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.69: +31 -21 lines
Diff to previous 1.69 (colored)

fix previous;

Revision 1.69 / (download) - annotate - [select for diffs], Fri Sep 11 21:07:01 2015 UTC (8 years, 8 months ago) by beck
Branch: MAIN
Changes since 1.68: +45 -6 lines
Diff to previous 1.68 (colored)

Add TLS suppport to nc. Provides a useful little test and script tool.
ok jsing@ bluhm@

Revision 1.68 / (download) - annotate - [select for diffs], Thu Mar 26 10:35:04 2015 UTC (9 years, 1 month ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored)

Sync camel case of "ProxyUseFdpass" with ssh_config(5).

ok djm

Revision 1.67 / (download) - annotate - [select for diffs], Wed Feb 26 20:56:11 2014 UTC (10 years, 2 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.66: +2 -3 lines
Diff to previous 1.66 (colored)

Once more, the default routing table id is inherited from the process
like for any other process as well. OK by many

Revision 1.66 / (download) - annotate - [select for diffs], Mon Feb 10 19:21:50 2014 UTC (10 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored)

one of the examples needs -N to work again;

the paper trail appears to be:
reported in feebsd pr docs/185353 by rol robert-eckardt de
fix suggested by peter wemm
diff submitted to tech by allan jude

Revision 1.65 / (download) - annotate - [select for diffs], Tue Aug 20 21:05:20 2013 UTC (10 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

escape not-full-stop-dot at eol;

Revision 1.64 / (download) - annotate - [select for diffs], Tue Aug 20 16:22:09 2013 UTC (10 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.63: +18 -3 lines
Diff to previous 1.63 (colored)

add -F flag to enabled fd-pass mode: establish connection and pass
connected socket to stdout. This is useful in proxy mode to establish
a connection for use by ssh in conjunction with its new ProxyUseFDPass
option; ok markus@

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jul 16 00:07:52 2013 UTC (10 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.62: +4 -4 lines
Diff to previous 1.62 (colored)

use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@

Revision 1.62 / (download) - annotate - [select for diffs], Wed Mar 20 09:27:56 2013 UTC (11 years, 2 months ago) by sthen
Branch: MAIN
Changes since 1.61: +7 -3 lines
Diff to previous 1.61 (colored)

Don't shutdown nc(1)'s network socket when stdin closes. Matches *Hobbit*'s
original netcat and GNU netcat; revert to old behaviour with the new -N flag
if needed. After much discussion with otto deraadt tedu and Martin Pelikan.
ok deraadt@

Revision 1.61 / (download) - annotate - [select for diffs], Sat Jul 7 15:33:02 2012 UTC (11 years, 10 months ago) by haesbaert
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.60: +6 -2 lines
Diff to previous 1.60 (colored)

Allow UDP server to receive datagrams from multiple socket pairs with -k
flag. Prompted by a question from dsp at 2f30 dot org, diff from Lazarom
Koromil with a few tweaks by me, many thanks.

ok mikeb@ nicm@ haesbaert@

Revision 1.60 / (download) - annotate - [select for diffs], Tue Feb 7 12:11:43 2012 UTC (12 years, 3 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.59: +13 -6 lines
Diff to previous 1.59 (colored)

Expand the CAVEAT section to more fully describe the behaviour of
the -uz combination.

This diff stems from a diff by brynet@ sent to tech@

help from jmc@ regarding wording.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Oct 4 08:34:34 2011 UTC (12 years, 7 months ago) by fgsch
Branch: MAIN
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored)

change -w to apply to the connection as well. manpage bit from jmc@
nicm@ ok.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Sep 17 14:10:05 2011 UTC (12 years, 8 months ago) by haesbaert
Branch: MAIN
Changes since 1.57: +18 -11 lines
Diff to previous 1.57 (colored)

Standarize the ToS option across nc/ping/traceroute so that they'll
accept the same values as pf.conf. It accepts decimal, hexadecimal and
the dscp/tos keywords. The ping option was ripped of in SMALL.

ok mcbride@ sthen@

Revision 1.57 / (download) - annotate - [select for diffs], Sun Jan 9 22:16:46 2011 UTC (13 years, 4 months ago) by jeremy
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.56: +20 -13 lines
Diff to previous 1.56 (colored)

Minor tweaks to nc(1) man page and usage.

OK jmc@, nicm@, tedu@

Revision 1.56 / (download) - annotate - [select for diffs], Sat Jan 8 00:44:19 2011 UTC (13 years, 4 months ago) by jeremy
Branch: MAIN
Changes since 1.55: +16 -2 lines
Diff to previous 1.55 (colored)

Support unix domain sockets in nc(1) with -Uu.

Previously, using -U with -u was an error that was not documented
in the man page.  Now it will use a unix socket in datagram mode.

Bidirectional unix datagram communication requires a socket at
both ends, so in client mode (without -l), a temporary socket is
created so that responses from the server can be received.
If -s is specified with -U and -u, it specifies the location of
the temporary socket to create.

This was mostly written way back in 2007.  Since then, various
improvements implemented based on suggestions from guenther@,
tedu@, and nicm@. Man page help from nicm@ and jmc@.

Unix datagram support requires a small change to atomicio.c
in order to function correctly, this will be committed separately
shortly.

OK nicm@

Revision 1.55 / (download) - annotate - [select for diffs], Sun Jul 25 07:51:39 2010 UTC (13 years, 9 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

echo behaves differently in sh and csh, only handling C-style escapes
in the former, so switch an example that needs them to use printf instead.
From bcr at freebsd.org.
ok halex@

Revision 1.54 / (download) - annotate - [select for diffs], Sat Jul 3 04:44:51 2010 UTC (13 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.53: +5 -5 lines
Diff to previous 1.53 (colored)

Fix the naming of interfaces and variables for rdomains and rtables
and make it possible to bind sockets (including listening sockets!)
to rtables and not just rdomains.  This changes the name of the
system calls, socket option, and ioctl.  After building with this
you should remove the files /usr/share/man/cat2/[gs]etrdomain.0.

Since this removes the existing [gs]etrdomain() system calls, the
libc major is bumped.

Written by claudio@, criticized^Wcritiqued by me

Revision 1.53 / (download) - annotate - [select for diffs], Tue Feb 23 23:00:52 2010 UTC (14 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

Fix the worst among the fatal block-nesting issues we have in our tree,
in the end simply changing Oo Xo Oo Oc Oc Xc to Oo Xo Oo Oc Xc Oc.
I tried five different variants without the Xo/Xc, because there is
no real reason why Xo/Xc should be needed here, and two additional
variants with Xo/Xc that look more pretty than what i'm now committing.
All seven alternatives work both with mandoc and groff 1.20.1, but
all seven trigger various different bugs in our old groff, and we
still need to remain compatible with our old groff right now.

ok jmc@ sobrado@

Revision 1.52 / (download) - annotate - [select for diffs], Thu Oct 22 15:02:12 2009 UTC (14 years, 6 months ago) by sobrado
Branch: MAIN
Changes since 1.51: +6 -6 lines
Diff to previous 1.51 (colored)

write UNIX-domain in a more consistent way; while here, replace a
few remaining ".Tn UNIX" macros with ".Ux" ones.

pointed out by ratchov@, thanks!

ok jmc@

Revision 1.51 / (download) - annotate - [select for diffs], Thu Oct 22 12:35:53 2009 UTC (14 years, 7 months ago) by sobrado
Branch: MAIN
Changes since 1.50: +7 -3 lines
Diff to previous 1.50 (colored)

use the UNIX-related macros (.At and .Ux) where appropriate.

ok jmc@

Revision 1.50 / (download) - annotate - [select for diffs], Fri Jun 5 06:47:12 2009 UTC (14 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.49: +4 -3 lines
Diff to previous 1.49 (colored)

tweak -V;

Revision 1.49 / (download) - annotate - [select for diffs], Fri Jun 5 00:18:10 2009 UTC (14 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.48: +5 -2 lines
Diff to previous 1.48 (colored)

The networking swissarmy knife needs to work on alternate domains as well.
Again -V can be used to specify the domain.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Sep 19 13:24:41 2008 UTC (15 years, 8 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

documentation tweaks; synchronize synopsis and usage.

written with help by jmc@

ok jmc@

Revision 1.47 / (download) - annotate - [select for diffs], Tue May 6 16:21:03 2008 UTC (16 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.46: +7 -7 lines
Diff to previous 1.46 (colored)

- put the description of -O in the right place
- shorten the argument names to -IO

Revision 1.46 / (download) - annotate - [select for diffs], Tue May 6 05:47:39 2008 UTC (16 years ago) by djm
Branch: MAIN
Changes since 1.45: +8 -2 lines
Diff to previous 1.45 (colored)

allow setting of TCP send/receive buffer sizes; ok markus@

Revision 1.45 / (download) - annotate - [select for diffs], Thu May 31 19:20:13 2007 UTC (16 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

convert to new .Dd format;

Revision 1.44 / (download) - annotate - [select for diffs], Sat Dec 2 01:08:30 2006 UTC (17 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

tweaks; from claus assmann (pr #5317);

Revision 1.43 / (download) - annotate - [select for diffs], Tue Jan 31 09:34:12 2006 UTC (18 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

use "proxy_protocol" as the arg to -X, not "proxy_version";
from ray lai;

Revision 1.42 / (download) - annotate - [select for diffs], Wed Jan 25 23:21:37 2006 UTC (18 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.41: +12 -1 lines
Diff to previous 1.41 (colored)

implement HTTP proxy authentication support, very useful in a ssh_config
ProxyCommand; ok beck@

Revision 1.41 / (download) - annotate - [select for diffs], Tue Oct 25 03:51:06 2005 UTC (18 years, 6 months ago) by dtucker
Branch: MAIN
Changes since 1.40: +10 -1 lines
Diff to previous 1.40 (colored)

Add a -T option to nc to allow setting of IP type-of-service bits on
connections.  Man page corrections jmc@, code corrections and ok djm@

Revision 1.40 / (download) - annotate - [select for diffs], Sun Jul 17 19:18:47 2005 UTC (18 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.39: +4 -3 lines
Diff to previous 1.39 (colored)

oops... .Dl does not like to be inundated with args, and my last commit just
exceeded the happy number - use a display instead.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jul 17 19:15:38 2005 UTC (18 years, 10 months ago) by jmc
Branch: MAIN
Changes since 1.38: +11 -14 lines
Diff to previous 1.38 (colored)

some improvements from alf schlichting:

- correct syntax for retrieving an http page. this example further
corrected by ian darwin (thanks!)
- the -v flag is relatively useless when port scanning, so remove it
from the example, and reword the description appropriately
- udp port scans always report ports as open (i.e. are useless) so
remove example claiming it works, and add CAVEATS to note that -uz is
relatively useless

Revision 1.38 / (download) - annotate - [select for diffs], Fri May 20 10:55:09 2005 UTC (19 years ago) by jmc
Branch: MAIN
Changes since 1.37: +11 -3 lines
Diff to previous 1.37 (colored)

cross reference proxy example to relevant ssh option;
originally from ray; help/ok djm@

Revision 1.37 / (download) - annotate - [select for diffs], Mon Feb 21 10:56:22 2005 UTC (19 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.36: +12 -11 lines
Diff to previous 1.36 (colored)

use a standard hostname in EXAMPLES (host.example.com), which also
fixes an error;

from ray;

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jan 7 10:11:31 2005 UTC (19 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

better wording for -l;

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jan 7 10:07:35 2005 UTC (19 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.34: +25 -4 lines
Diff to previous 1.34 (colored)

- better documenting of `host' and `port[s]'
- note that -l ignores timeouts

Revision 1.34 / (download) - annotate - [select for diffs], Fri Dec 31 15:23:31 2004 UTC (19 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

explicitly mention port in an example;
from fgsch@

Revision 1.33 / (download) - annotate - [select for diffs], Sun Oct 17 03:13:55 2004 UTC (19 years, 7 months ago) by djm
Branch: MAIN
Changes since 1.32: +23 -9 lines
Diff to previous 1.32 (colored)

http proxy CONNECT support; ok beck@

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jul 15 15:07:52 2004 UTC (19 years, 10 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.31: +4 -2 lines
Diff to previous 1.31 (colored)

add -D for sodebug; ok deraadt, jmc

Revision 1.31 / (download) - annotate - [select for diffs], Fri Mar 12 10:10:00 2004 UTC (20 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.30: +3 -1 lines
Diff to previous 1.30 (colored)

add keeps to SYNOPSIS and sync usage();

Revision 1.30 / (download) - annotate - [select for diffs], Wed Mar 3 06:45:54 2004 UTC (20 years, 2 months ago) by tedu
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

add -d to usage too, from carson harding

Revision 1.29 / (download) - annotate - [select for diffs], Mon Mar 1 00:37:08 2004 UTC (20 years, 2 months ago) by tedu
Branch: MAIN
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (colored)

resolve pr3694.  add -d [etached] to ignore stdin.  ok henning@ mcbride@

Revision 1.28 / (download) - annotate - [select for diffs], Fri Feb 20 10:53:10 2004 UTC (20 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.27: +196 -64 lines
Diff to previous 1.27 (colored)

- sort options and SYNOPSIS
- better document which options do/don't work together
- add sections showing some possible uses of nc
- code (comment) typos
- sync usage() and help

suggestions/improvements from otto@
ok deraadt@

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jan 22 13:28:46 2004 UTC (20 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.26: +4 -2 lines
Diff to previous 1.26 (colored)

-S enables tcp md5 signature option; ok deraadt@, mcbride@

Revision 1.26 / (download) - annotate - [select for diffs], Fri Sep 5 16:54:07 2003 UTC (20 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.25: +15 -1 lines
Diff to previous 1.25 (colored)

document -w timeout; from cedric@
ok deraadt@

Revision 1.25 / (download) - annotate - [select for diffs], Fri Aug 8 10:13:33 2003 UTC (20 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

refer to RFCs consistently (RFC XXXX);

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jan 5 09:39:39 2003 UTC (21 years, 4 months ago) by pvalchev
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Grammar fix - remove bogus comma; jmc@prioris.mini.pw.edu.pl

Revision 1.23 / (download) - annotate - [select for diffs], Thu Nov 14 00:50:40 2002 UTC (21 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +13 -13 lines
Diff to previous 1.22 (colored)

$ in front of commands

Revision 1.22 / (download) - annotate - [select for diffs], Thu Feb 28 18:05:36 2002 UTC (22 years, 2 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.21: +9 -2 lines
Diff to previous 1.21 (colored)

add support for SOCKS4 with option -X socks_version, default is 5; ok ericj@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Feb 19 22:45:18 2002 UTC (22 years, 3 months ago) by ericj
Branch: MAIN
Changes since 1.20: +5 -8 lines
Diff to previous 1.20 (colored)


man page fixes
from Kevin Steves <stevesk@pobox.com>

Revision 1.20 / (download) - annotate - [select for diffs], Sun Feb 17 03:03:06 2002 UTC (22 years, 3 months ago) by ericj
Branch: MAIN
Changes since 1.19: +8 -2 lines
Diff to previous 1.19 (colored)


add support for connecting too and listening on AF_UNIX sockets.
connect support from dave@arbor.net.. rest by me

Revision 1.19 / (download) - annotate - [select for diffs], Sun Sep 2 18:45:41 2001 UTC (22 years, 8 months ago) by jakob
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.18: +9 -1 lines
Diff to previous 1.18 (colored)

add very basic proxy support using socks5 client code from niklas@.
ok ericj@.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Aug 30 16:31:51 2001 UTC (22 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.17: +1 -3 lines
Diff to previous 1.17 (colored)

Delete duplicate 'network daemon testing' item.

Spotted by Nick Nauwelaerts.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Aug 30 13:21:50 2001 UTC (22 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Fix typo - space before a comma.

Spotted by Nick Nauwelaerts.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Aug 2 20:54:56 2001 UTC (22 years, 9 months ago) by ericj
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)


fix doc syntax
from Dima Dorfman <dima@unixfreak.org>

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 27 03:05:21 2001 UTC (22 years, 10 months ago) by smart
Branch: MAIN
Changes since 1.14: +7 -4 lines
Diff to previous 1.14 (colored)

Fix AUTHORS section.  aaron@ ok.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jun 26 14:14:14 2001 UTC (22 years, 10 months ago) by jasoni
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

typo

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jun 26 06:55:06 2001 UTC (22 years, 10 months ago) by ericj
Branch: MAIN
Changes since 1.12: +67 -117 lines
Diff to previous 1.12 (colored)


update this man page for the new netcat

Revision 1.12 / (download) - annotate - [select for diffs], Fri May 4 01:38:31 2001 UTC (23 years ago) by millert
Branch: MAIN
Changes since 1.11: +1 -2 lines
Diff to previous 1.11 (colored)

GAPING_SECURITY_HOLE was removed so there is no -e option.
Removed from man page and usage; closes PR 1808

Revision 1.11 / (download) - annotate - [select for diffs], Tue Sep 26 01:41:44 2000 UTC (23 years, 7 months ago) by ericj
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.10: +1 -8 lines
Diff to previous 1.10 (colored)

remove -e option, which wasnt on anyway

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jul 10 21:52:35 2000 UTC (23 years, 10 months ago) by ian
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Typo & style fix.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Jul 8 15:42:04 2000 UTC (23 years, 10 months ago) by aaron
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Move option flags that don't require arguments to the first of the list in
the SYNOPSIS section to be more consistent with our other man pages.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jul 6 04:06:55 2000 UTC (23 years, 10 months ago) by aaron
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Insert more missing .El directives. Our troff really should identify these and
spit out a warning.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Mar 10 19:07:22 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.6: +42 -21 lines
Diff to previous 1.6 (colored)

Various cleanups and standardization.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jun 5 01:21:34 1999 UTC (24 years, 11 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.5: +21 -21 lines
Diff to previous 1.5 (colored)

- remove trailing white space
- remove arguments from .Os macros
- remove arguments from .Nm macros, where appropriate
- some more Dq/Sq/Ql insanity
- still lots to do in the usr.bin tree... :/

Revision 1.5 / (download) - annotate - [select for diffs], Mon Sep 28 06:57:35 1998 UTC (25 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.4: +3 -4 lines
Diff to previous 1.4 (colored)

kill extra .Pp and add some quotes

Revision 1.4 / (download) - annotate - [select for diffs], Sun Sep 27 22:24:56 1998 UTC (25 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +2 -3 lines
Diff to previous 1.3 (colored)

fix things for makewhatis

Revision 1.3 / (download) - annotate - [select for diffs], Sun Sep 27 16:57:47 1998 UTC (25 years, 7 months ago) by aaron
Branch: MAIN
Changes since 1.2: +31 -28 lines
Diff to previous 1.2 (colored)

usr.bin/ man page cleanups, n-s

Revision 1.2 / (download) - annotate - [select for diffs], Wed Mar 11 18:42:23 1998 UTC (26 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

SYNOPSIS header; fixes man -k nc

Revision 1.1 / (download) - annotate - [select for diffs], Thu Sep 5 08:55:32 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0

nc is *hobbit*'s netcat; let the sysadm have the same tools the crackers
have, so that he may learn what the network is about and protect it better.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.