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