diff options
| author | niklas <> | 2001-01-29 01:58:13 +0000 |
|---|---|---|
| committer | niklas <> | 2001-01-29 01:58:13 +0000 |
| commit | 68c2927b4d7475ddf9a91438c0df0a7d9802de22 (patch) | |
| tree | 10c67593dede55bcdae3d042703f1bc8d7be7b69 /src/usr.bin/nc/scripts | |
| parent | 46a814f96f796de57f11453f27b50a067b7702c3 (diff) | |
| download | openbsd-68c2927b4d7475ddf9a91438c0df0a7d9802de22.tar.gz openbsd-68c2927b4d7475ddf9a91438c0df0a7d9802de22.tar.bz2 openbsd-68c2927b4d7475ddf9a91438c0df0a7d9802de22.zip | |
$OpenBSD$
Diffstat (limited to 'src/usr.bin/nc/scripts')
| -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 |
11 files changed, 22 insertions, 0 deletions
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. |
