From: adw3345@ultb.isc.rit.edu (A.D. Williams)
Subject: HOW TO CHEESE OFF SYSTEM ADMINISTRATORS
Originator: adw3345@ultb
Keywords: I'm a baaaaaad boy!
Organization: Rochester Institute of Technology
Date: Thu, 10 Sep 1992 02:11:11 GMT


 Some time ago, Carasso offered butt sex for a program that would act
like "biff", but would alert him when Gooley posted to any of the
newsgroups.

 I thought about this and came up with a working script, but
changed the search to look for posters from RIT instead. Gooley didn't
post anything really interesting outside talk.bizarre during the time
when I was diddling with it.

 Sadly, I got a slap in the wrist from the school computer authorities
for "wasting system resources" (if 50 people reading news isn't a waste
of system resources, I don't know what is).

 So rather delete it and go on to something else, I will post the "bad
boy" mail I got, as well as the script.

 This script, as it stands now, goes through all the newsgroups, finds
postings by RIT students and staff, and copies the article to a file
named after the person's ID. For example, all my postings to any of the
newsgroups will be copied to a file called "adw3345".

 Now, apparently this slows NFS to a crawl, so I don't recommend running
this script unless you don't have to follow anyone's computer usage
policy.

 You will need to add code to prevent this script from copying the same
article when someone posts to multiple newsgroups. This modification is
trivial but I'm not working on it anymore.

 So without further ado, here is the mail (sightly edited) as well as
the script. 

 Have fun, and remember I am fully prepared to deny I've ever posted
this.

                                                             Derrick
-----------------------------------------------------------------------

From xxxxxx Wed Sep  9 17:03:05 1992
Received: by ultb.isc.rit.edu (5.57/Config (1/21/92) (Postmaster DPMSYS));
	id AA15066; Wed, 9 Sep 92 17:03:03 -0400
Date: Wed, 9 Sep 92 17:03:03 -0400
From: xxxxxx (Bigshot of ultb)
To: adw3345, xxxxxx, root
Subject: ADW3345: Computing Activities
Status: RO

In effort to provide quality time sharing computing services to the
entire RIT community, ISC must be watchful of resource bottlenecks
and activities which degrade systems and network performance.  Such
activites diminish the quality of services and negatively impact the
entire community.

The use of the /bin/sh script called "/a2/s1/adw3345/spy/spy" is
considered an inappropriate use of the computer systems.  This script
which actively seeks news postings from users at ".rit.edu" is
wasteful system resources on both ULTB and VADER (the file server).
The net impact to the RIT community is a severe degredation in
performance on both ULTB and VADER.

Please discontinue any further execution of "spy" or similar shell scripts.
Such activities are clearly prohibited as described in the Code of
Conduct for Computer Use.

Thank you,

-xxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxx 
-------------------------------------------------------------------------------
USER       PID %CPU %MEM   SZ  RSS TT STAT   TIME COMMAND
adw3345   1503  9.8  0.2  260  224 ?  R     20:32 sh spy
-------------------------------------------------------------------------------
#!/bin/sh

echo "" > .spylanew

if [ ! -f ".spyla" ]
then
	echo > .spyla 
fi

for dir in `find /usr/spool/news/. -type d -print`  
do

	lastacc="`grep $dir .spyla | awk ' { print $2 } ' `"

	if [ -z "$lastacc" ]
	then
		echo "$dir 0" >> .spyla
		lastacc=0
	fi

	hinum=$lastacc

	for files in `ls -1 $dir`
	do
		if [ -f $dir/$files -a $files -gt 0 ]
		then
			if [ $files -gt $hinum ]
			then
				hinum=$files
			fi

			from=`grep 'From' $dir/$files | line | \
                              grep -i "\.rit\.edu" | line` 

			if [ ! -z "$from" ]
			then
				cat $dir/$files >> \
                                `echo $from | cut -f2 -d" " |  cut -f1 -d"@" `  
			fi	
		fi
	done

	echo "$dir $hinum" >> .spylanew
done
rm .spyla
mv .spylanew .spyla

-- 
-------------------------------------------------------------------------
- Derrick Williams   Rochester Institute of Technology | Insert snappy  -
- adw3345@ultb.isc.rit.edu     Computer Science        | quotation here -
-------------------------------------------------------------------------
Newsgroups: talk.bizarre