summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc/scripts/dist.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/nc/scripts/dist.sh')
-rw-r--r--src/usr.bin/nc/scripts/dist.sh25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/usr.bin/nc/scripts/dist.sh b/src/usr.bin/nc/scripts/dist.sh
deleted file mode 100644
index f9519c87a6..0000000000
--- a/src/usr.bin/nc/scripts/dist.sh
+++ /dev/null
@@ -1,25 +0,0 @@
1#! /bin/sh
2# $OpenBSD: dist.sh,v 1.2 2001/01/29 01:58:12 niklas Exp $
3
4## This is a quick example listen-exec server, which was used for a while to
5## distribute netcat prereleases. It illustrates use of netcat both as a
6## "fake inetd" and a syslogger, and how easy it then is to crock up a fairly
7## functional server that restarts its own listener and does full connection
8## logging. In a half-screen of shell script!!
9
10PORT=31337
11
12sleep 1
13SRC=`tail -1 dist.log`
14echo "<36>elite: ${SRC}" | ./nc -u -w 1 localhost 514 > /dev/null 2>&1
15echo ";;; Hi, ${SRC}..."
16echo ";;; This is a PRERELEASE version of 'netcat', tar/gzip/uuencoded."
17echo ";;; Unless you are capturing this somehow, it won't do you much good."
18echo ";;; Ready?? Here it comes! Have phun ..."
19sleep 8
20cat dist.file
21sleep 1
22./nc -v -l -p ${PORT} -e dist.sh < /dev/null >> dist.log 2>&1 &
23sleep 1
24echo "<36>elite: done" | ./nc -u -w 1 localhost 514 > /dev/null 2>&1
25exit 0