diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.bin/nc/data/Makefile | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/data/data.c | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/data/dns-any.d | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/data/nfs-0.d | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/data/pm.d | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/data/pmap-dump.d | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/data/pmap-mnt.d | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/data/rip.d | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/data/rservice.c | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/data/showmount.d | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/data/xor.c | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/scripts/alta | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/scripts/bsh | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/scripts/dist.sh | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/scripts/irc | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/scripts/iscan | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/scripts/ncp | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/scripts/probe | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/scripts/web | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/scripts/webproxy | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/scripts/webrelay | 2 | ||||
-rw-r--r-- | src/usr.bin/nc/scripts/websearch | 2 |
22 files changed, 44 insertions, 0 deletions
diff --git a/src/usr.bin/nc/data/Makefile b/src/usr.bin/nc/data/Makefile index 65cf185358..817cbabca9 100644 --- a/src/usr.bin/nc/data/Makefile +++ b/src/usr.bin/nc/data/Makefile | |||
@@ -1,3 +1,5 @@ | |||
1 | # $OpenBSD: Makefile,v 1.2 2001/01/29 01:58:11 niklas Exp $ | ||
2 | |||
1 | all: data rservice xor | 3 | all: data rservice xor |
2 | 4 | ||
3 | data: data.c | 5 | data: data.c |
diff --git a/src/usr.bin/nc/data/data.c b/src/usr.bin/nc/data/data.c index 4d5ef4a041..206945eed2 100644 --- a/src/usr.bin/nc/data/data.c +++ b/src/usr.bin/nc/data/data.c | |||
@@ -1,3 +1,5 @@ | |||
1 | /* $OpenBSD: data.c,v 1.3 2001/01/29 01:58:11 niklas Exp $ */ | ||
2 | |||
1 | /* primitive arbitrary-data frontend for netcat. 0.9 960226 | 3 | /* primitive arbitrary-data frontend for netcat. 0.9 960226 |
2 | only handles one value per ascii line, but at least parses 0xNN too | 4 | only handles one value per ascii line, but at least parses 0xNN too |
3 | an input line containing "%r" during "-g" generates a random byte | 5 | an input line containing "%r" during "-g" generates a random byte |
diff --git a/src/usr.bin/nc/data/dns-any.d b/src/usr.bin/nc/data/dns-any.d index 77b014cf70..40ef3cba48 100644 --- a/src/usr.bin/nc/data/dns-any.d +++ b/src/usr.bin/nc/data/dns-any.d | |||
@@ -1,3 +1,5 @@ | |||
1 | # $OpenBSD: dns-any.d,v 1.2 2001/01/29 01:58:11 niklas Exp $ | ||
2 | |||
1 | # dns "any for ." query, to udp 53 | 3 | # dns "any for ." query, to udp 53 |
2 | # if tcp: precede with 2 bytes of len: | 4 | # if tcp: precede with 2 bytes of len: |
3 | # 0 | 5 | # 0 |
diff --git a/src/usr.bin/nc/data/nfs-0.d b/src/usr.bin/nc/data/nfs-0.d index 0360938227..c6d51827b7 100644 --- a/src/usr.bin/nc/data/nfs-0.d +++ b/src/usr.bin/nc/data/nfs-0.d | |||
@@ -1,3 +1,5 @@ | |||
1 | # $OpenBSD: nfs-0.d,v 1.2 2001/01/29 01:58:11 niklas Exp $ | ||
2 | |||
1 | # UDP NFS null-proc call; finds active NFS listeners on port 2049. | 3 | # UDP NFS null-proc call; finds active NFS listeners on port 2049. |
2 | # If you get *something* back, there's an NFS server there. | 4 | # If you get *something* back, there's an NFS server there. |
3 | 5 | ||
diff --git a/src/usr.bin/nc/data/pm.d b/src/usr.bin/nc/data/pm.d index fe327693a9..2d006a032f 100644 --- a/src/usr.bin/nc/data/pm.d +++ b/src/usr.bin/nc/data/pm.d | |||
@@ -1,3 +1,5 @@ | |||
1 | # $OpenBSD: pm.d,v 1.2 2001/01/29 01:58:11 niklas Exp $ | ||
2 | |||
1 | # obligatory duplicate of dr delete's Livingston portmaster crash, aka | 3 | # obligatory duplicate of dr delete's Livingston portmaster crash, aka |
2 | # telnet break. Fire into its telnet listener. An *old* bug by now, but | 4 | # telnet break. Fire into its telnet listener. An *old* bug by now, but |
3 | # consider the small window one might obtain from a slightly out-of-rev PM | 5 | # consider the small window one might obtain from a slightly out-of-rev PM |
diff --git a/src/usr.bin/nc/data/pmap-dump.d b/src/usr.bin/nc/data/pmap-dump.d index bc6b63277d..98d6142001 100644 --- a/src/usr.bin/nc/data/pmap-dump.d +++ b/src/usr.bin/nc/data/pmap-dump.d | |||
@@ -1,3 +1,5 @@ | |||
1 | # $OpenBSD: pmap-dump.d,v 1.2 2001/01/29 01:58:11 niklas Exp $ | ||
2 | |||
1 | # portmap dump request: like "rpcinfo -p" but via UDP instead | 3 | # portmap dump request: like "rpcinfo -p" but via UDP instead |
2 | # send to UDP 111 and hope it's not a logging portmapper! | 4 | # send to UDP 111 and hope it's not a logging portmapper! |
3 | # split into longwords, since rpc apparently only deals with them | 5 | # split into longwords, since rpc apparently only deals with them |
diff --git a/src/usr.bin/nc/data/pmap-mnt.d b/src/usr.bin/nc/data/pmap-mnt.d index 00588ba41f..0dc3ffc55e 100644 --- a/src/usr.bin/nc/data/pmap-mnt.d +++ b/src/usr.bin/nc/data/pmap-mnt.d | |||
@@ -1,3 +1,5 @@ | |||
1 | # $OpenBSD: pmap-mnt.d,v 1.2 2001/01/29 01:58:11 niklas Exp $ | ||
2 | |||
1 | # portmap request for mountd [or whatever; see where prog=MOUNT] | 3 | # portmap request for mountd [or whatever; see where prog=MOUNT] |
2 | # send to UDP 111 and hope it's not a logging portmapper! | 4 | # send to UDP 111 and hope it's not a logging portmapper! |
3 | # split into longwords, since rpc apparently only deals with them | 5 | # split into longwords, since rpc apparently only deals with them |
diff --git a/src/usr.bin/nc/data/rip.d b/src/usr.bin/nc/data/rip.d index da505e2143..51be878454 100644 --- a/src/usr.bin/nc/data/rip.d +++ b/src/usr.bin/nc/data/rip.d | |||
@@ -1,3 +1,5 @@ | |||
1 | # $OpenBSD: rip.d,v 1.2 2001/01/29 01:58:11 niklas Exp $ | ||
2 | |||
1 | # struct netinfo { | 3 | # struct netinfo { |
2 | # struct sockaddr rip_dst; /* destination net/host */ | 4 | # struct sockaddr rip_dst; /* destination net/host */ |
3 | # int rip_metric; /* cost of route */ | 5 | # int rip_metric; /* cost of route */ |
diff --git a/src/usr.bin/nc/data/rservice.c b/src/usr.bin/nc/data/rservice.c index 1085d9cb78..d6794df941 100644 --- a/src/usr.bin/nc/data/rservice.c +++ b/src/usr.bin/nc/data/rservice.c | |||
@@ -1,3 +1,5 @@ | |||
1 | /* $OpenBSD: rservice.c,v 1.2 2001/01/29 01:58:12 niklas Exp $ */ | ||
2 | |||
1 | /* generate ^@string1^@string2^@cmd^@ input to netcat, for scripting up | 3 | /* generate ^@string1^@string2^@cmd^@ input to netcat, for scripting up |
2 | rsh/rexec attacks. Needs to be a prog because shells strip out nulls. | 4 | rsh/rexec attacks. Needs to be a prog because shells strip out nulls. |
3 | 5 | ||
diff --git a/src/usr.bin/nc/data/showmount.d b/src/usr.bin/nc/data/showmount.d index 499794bc8a..77700a70ce 100644 --- a/src/usr.bin/nc/data/showmount.d +++ b/src/usr.bin/nc/data/showmount.d | |||
@@ -1,3 +1,5 @@ | |||
1 | # $OpenBSD: showmount.d,v 1.2 2001/01/29 01:58:12 niklas Exp $ | ||
2 | |||
1 | # UDP mountd call. Use as input to find mount daemons and avoid portmap. | 3 | # UDP mountd call. Use as input to find mount daemons and avoid portmap. |
2 | # Useful proc numbers are 2, 5, and 6. | 4 | # Useful proc numbers are 2, 5, and 6. |
3 | # UDP-scan around between 600-800 to find most mount daemons. | 5 | # UDP-scan around between 600-800 to find most mount daemons. |
diff --git a/src/usr.bin/nc/data/xor.c b/src/usr.bin/nc/data/xor.c index 9feead0cba..515e225a1e 100644 --- a/src/usr.bin/nc/data/xor.c +++ b/src/usr.bin/nc/data/xor.c | |||
@@ -1,3 +1,5 @@ | |||
1 | /* $OpenBSD: xor.c,v 1.2 2001/01/29 01:58:12 niklas Exp $ */ | ||
2 | |||
1 | /* Generic xor handler. | 3 | /* Generic xor handler. |
2 | 4 | ||
3 | With no args, xors stdin against 0xFF to stdout. A single argument is a | 5 | With no args, xors stdin against 0xFF to stdout. A single argument is a |
diff --git a/src/usr.bin/nc/scripts/alta b/src/usr.bin/nc/scripts/alta index 7a091767e8..ed4bd3917c 100644 --- a/src/usr.bin/nc/scripts/alta +++ b/src/usr.bin/nc/scripts/alta | |||
@@ -1,4 +1,6 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # $OpenBSD: alta,v 1.2 2001/01/29 01:58:12 niklas Exp $ | ||
3 | |||
2 | ## special handler for altavista, since they only hand out chunks of 10 at | 4 | ## special handler for altavista, since they only hand out chunks of 10 at |
3 | ## a time. Tries to isolate out results without the leading/trailing trash. | 5 | ## a time. Tries to isolate out results without the leading/trailing trash. |
4 | ## multiword arguments are foo+bar, as usual. | 6 | ## multiword arguments are foo+bar, as usual. |
diff --git a/src/usr.bin/nc/scripts/bsh b/src/usr.bin/nc/scripts/bsh index 796e480354..808e8f9968 100644 --- a/src/usr.bin/nc/scripts/bsh +++ b/src/usr.bin/nc/scripts/bsh | |||
@@ -1,4 +1,6 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # $OpenBSD: bsh,v 1.2 2001/01/29 01:58:12 niklas Exp $ | ||
3 | |||
2 | ## a little wrapper to "password" and re-launch a shell-listener. | 4 | ## a little wrapper to "password" and re-launch a shell-listener. |
3 | ## Arg is taken as the port to listen on. Define "NC" to point wherever. | 5 | ## Arg is taken as the port to listen on. Define "NC" to point wherever. |
4 | 6 | ||
diff --git a/src/usr.bin/nc/scripts/dist.sh b/src/usr.bin/nc/scripts/dist.sh index 4d2534a0e3..f9519c87a6 100644 --- a/src/usr.bin/nc/scripts/dist.sh +++ b/src/usr.bin/nc/scripts/dist.sh | |||
@@ -1,4 +1,6 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # $OpenBSD: dist.sh,v 1.2 2001/01/29 01:58:12 niklas Exp $ | ||
3 | |||
2 | ## This is a quick example listen-exec server, which was used for a while to | 4 | ## This is a quick example listen-exec server, which was used for a while to |
3 | ## distribute netcat prereleases. It illustrates use of netcat both as a | 5 | ## distribute netcat prereleases. It illustrates use of netcat both as a |
4 | ## "fake inetd" and a syslogger, and how easy it then is to crock up a fairly | 6 | ## "fake inetd" and a syslogger, and how easy it then is to crock up a fairly |
diff --git a/src/usr.bin/nc/scripts/irc b/src/usr.bin/nc/scripts/irc index 3557d7a0c6..e45942c0bc 100644 --- a/src/usr.bin/nc/scripts/irc +++ b/src/usr.bin/nc/scripts/irc | |||
@@ -1,4 +1,6 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # $OpenBSD: irc,v 1.2 2001/01/29 01:58:12 niklas Exp $ | ||
3 | |||
2 | ## Shit-simple script to supply the "privmsg <recipient>" of IRC typein, and | 4 | ## Shit-simple script to supply the "privmsg <recipient>" of IRC typein, and |
3 | ## keep the connection alive. Pipe this thru "nc -v -w 5 irc-server port". | 5 | ## keep the connection alive. Pipe this thru "nc -v -w 5 irc-server port". |
4 | ## Note that this mechanism makes the script easy to debug without being live, | 6 | ## Note that this mechanism makes the script easy to debug without being live, |
diff --git a/src/usr.bin/nc/scripts/iscan b/src/usr.bin/nc/scripts/iscan index 6279bc817f..237d6b0625 100644 --- a/src/usr.bin/nc/scripts/iscan +++ b/src/usr.bin/nc/scripts/iscan | |||
@@ -1,4 +1,6 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # $OpenBSD: iscan,v 1.2 2001/01/29 01:58:12 niklas Exp $ | ||
3 | |||
2 | ## duplicate DaveG's ident-scan thingie using netcat. Oooh, he'll be pissed. | 4 | ## duplicate DaveG's ident-scan thingie using netcat. Oooh, he'll be pissed. |
3 | ## args: target port [port port port ...] | 5 | ## args: target port [port port port ...] |
4 | ## hose stdout *and* stderr together. | 6 | ## hose stdout *and* stderr together. |
diff --git a/src/usr.bin/nc/scripts/ncp b/src/usr.bin/nc/scripts/ncp index 1931b03385..be87e9343b 100644 --- a/src/usr.bin/nc/scripts/ncp +++ b/src/usr.bin/nc/scripts/ncp | |||
@@ -1,4 +1,6 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # $OpenBSD: ncp,v 1.2 2001/01/29 01:58:13 niklas Exp $ | ||
3 | |||
2 | ## Like "rcp" but uses netcat on a high port. | 4 | ## Like "rcp" but uses netcat on a high port. |
3 | ## do "ncp targetfile" on the RECEIVING machine | 5 | ## do "ncp targetfile" on the RECEIVING machine |
4 | ## then do "ncp sourcefile receivinghost" on the SENDING machine | 6 | ## then do "ncp sourcefile receivinghost" on the SENDING machine |
diff --git a/src/usr.bin/nc/scripts/probe b/src/usr.bin/nc/scripts/probe index c47dc3f495..0b647672ea 100644 --- a/src/usr.bin/nc/scripts/probe +++ b/src/usr.bin/nc/scripts/probe | |||
@@ -1,4 +1,6 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # $OpenBSD: probe,v 1.2 2001/01/29 01:58:13 niklas Exp $ | ||
3 | |||
2 | ## launch a whole buncha shit at yon victim in no particular order; capture | 4 | ## launch a whole buncha shit at yon victim in no particular order; capture |
3 | ## stderr+stdout in one place. Run as root for rservice and low -p to work. | 5 | ## stderr+stdout in one place. Run as root for rservice and low -p to work. |
4 | ## Fairly thorough example of using netcat to collect a lot of host info. | 6 | ## Fairly thorough example of using netcat to collect a lot of host info. |
diff --git a/src/usr.bin/nc/scripts/web b/src/usr.bin/nc/scripts/web index 382b18e1e3..709c5c410f 100644 --- a/src/usr.bin/nc/scripts/web +++ b/src/usr.bin/nc/scripts/web | |||
@@ -1,4 +1,6 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # $OpenBSD: web,v 1.2 2001/01/29 01:58:13 niklas Exp $ | ||
3 | |||
2 | ## The web sucks. It is a mighty dismal kludge built out of a thousand | 4 | ## The web sucks. It is a mighty dismal kludge built out of a thousand |
3 | ## tiny dismal kludges all band-aided together, and now these bottom-line | 5 | ## tiny dismal kludges all band-aided together, and now these bottom-line |
4 | ## clueless pinheads who never heard of "TCP handshake" want to run | 6 | ## clueless pinheads who never heard of "TCP handshake" want to run |
diff --git a/src/usr.bin/nc/scripts/webproxy b/src/usr.bin/nc/scripts/webproxy index cee2d29fd1..f670e4d644 100644 --- a/src/usr.bin/nc/scripts/webproxy +++ b/src/usr.bin/nc/scripts/webproxy | |||
@@ -1,4 +1,6 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # $OpenBSD: webproxy,v 1.2 2001/01/29 01:58:13 niklas Exp $ | ||
3 | |||
2 | ## Web proxy, following the grand tradition of Web things being handled by | 4 | ## Web proxy, following the grand tradition of Web things being handled by |
3 | ## gross scripts. Uses netcat to listen on a high port [default 8000], | 5 | ## gross scripts. Uses netcat to listen on a high port [default 8000], |
4 | ## picks apart requests and sends them on to the right place. Point this | 6 | ## picks apart requests and sends them on to the right place. Point this |
diff --git a/src/usr.bin/nc/scripts/webrelay b/src/usr.bin/nc/scripts/webrelay index 829a8b0708..a0aa9e2a97 100644 --- a/src/usr.bin/nc/scripts/webrelay +++ b/src/usr.bin/nc/scripts/webrelay | |||
@@ -1,4 +1,6 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # $OpenBSD: webrelay,v 1.2 2001/01/29 01:58:13 niklas Exp $ | ||
3 | |||
2 | ## web relay -- a degenerate version of webproxy, usable with browsers that | 4 | ## web relay -- a degenerate version of webproxy, usable with browsers that |
3 | ## don't understand proxies. This just forwards connections to a given server. | 5 | ## don't understand proxies. This just forwards connections to a given server. |
4 | ## No query logging, no access control [although you can add it to XNC for | 6 | ## No query logging, no access control [although you can add it to XNC for |
diff --git a/src/usr.bin/nc/scripts/websearch b/src/usr.bin/nc/scripts/websearch index 60c3a3356a..9391c77bde 100644 --- a/src/usr.bin/nc/scripts/websearch +++ b/src/usr.bin/nc/scripts/websearch | |||
@@ -1,4 +1,6 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # $OpenBSD: websearch,v 1.2 2001/01/29 01:58:13 niklas Exp $ | ||
3 | |||
2 | ## Hit the major search engines. Hose the [large] output to a file! | 4 | ## Hit the major search engines. Hose the [large] output to a file! |
3 | ## autoconverts multiple arguments into the right format for given servers -- | 5 | ## autoconverts multiple arguments into the right format for given servers -- |
4 | ## usually worda+wordb, with certain lame exceptions like dejanews. | 6 | ## usually worda+wordb, with certain lame exceptions like dejanews. |