home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / talk / bizarre / 29628 < prev    next >
Encoding:
Text File  |  1992-09-10  |  4.5 KB  |  140 lines

  1. Newsgroups: talk.bizarre
  2. Path: sparky!uunet!psinntp!isc-newsserver!adw3345
  3. From: adw3345@ultb.isc.rit.edu (A.D. Williams)
  4. Subject: HOW TO CHEESE OFF SYSTEM ADMINISTRATORS
  5. Message-ID: <1992Sep10.021111.2371@ultb.isc.rit.edu>
  6. Originator: adw3345@ultb
  7. Keywords: I'm a baaaaaad boy!
  8. Sender: news@ultb.isc.rit.edu (USENET News System)
  9. Nntp-Posting-Host: ultb-gw.isc.rit.edu
  10. Organization: Rochester Institute of Technology
  11. Date: Thu, 10 Sep 1992 02:11:11 GMT
  12. Lines: 126
  13.  
  14.  
  15.  Some time ago, Carasso offered butt sex for a program that would act
  16. like "biff", but would alert him when Gooley posted to any of the
  17. newsgroups.
  18.  
  19.  I thought about this and came up with a working script, but
  20. changed the search to look for posters from RIT instead. Gooley didn't
  21. post anything really interesting outside talk.bizarre during the time
  22. when I was diddling with it.
  23.  
  24.  Sadly, I got a slap in the wrist from the school computer authorities
  25. for "wasting system resources" (if 50 people reading news isn't a waste
  26. of system resources, I don't know what is).
  27.  
  28.  So rather delete it and go on to something else, I will post the "bad
  29. boy" mail I got, as well as the script.
  30.  
  31.  This script, as it stands now, goes through all the newsgroups, finds
  32. postings by RIT students and staff, and copies the article to a file
  33. named after the person's ID. For example, all my postings to any of the
  34. newsgroups will be copied to a file called "adw3345".
  35.  
  36.  Now, apparently this slows NFS to a crawl, so I don't recommend running
  37. this script unless you don't have to follow anyone's computer usage
  38. policy.
  39.  
  40.  You will need to add code to prevent this script from copying the same
  41. article when someone posts to multiple newsgroups. This modification is
  42. trivial but I'm not working on it anymore.
  43.  
  44.  So without further ado, here is the mail (sightly edited) as well as
  45. the script. 
  46.  
  47.  Have fun, and remember I am fully prepared to deny I've ever posted
  48. this.
  49.  
  50.                                                              Derrick
  51. -----------------------------------------------------------------------
  52.  
  53. From xxxxxx Wed Sep  9 17:03:05 1992
  54. Received: by ultb.isc.rit.edu (5.57/Config (1/21/92) (Postmaster DPMSYS));
  55.     id AA15066; Wed, 9 Sep 92 17:03:03 -0400
  56. Date: Wed, 9 Sep 92 17:03:03 -0400
  57. From: xxxxxx (Bigshot of ultb)
  58. To: adw3345, xxxxxx, root
  59. Subject: ADW3345: Computing Activities
  60. Status: RO
  61.  
  62. In effort to provide quality time sharing computing services to the
  63. entire RIT community, ISC must be watchful of resource bottlenecks
  64. and activities which degrade systems and network performance.  Such
  65. activites diminish the quality of services and negatively impact the
  66. entire community.
  67.  
  68. The use of the /bin/sh script called "/a2/s1/adw3345/spy/spy" is
  69. considered an inappropriate use of the computer systems.  This script
  70. which actively seeks news postings from users at ".rit.edu" is
  71. wasteful system resources on both ULTB and VADER (the file server).
  72. The net impact to the RIT community is a severe degredation in
  73. performance on both ULTB and VADER.
  74.  
  75. Please discontinue any further execution of "spy" or similar shell scripts.
  76. Such activities are clearly prohibited as described in the Code of
  77. Conduct for Computer Use.
  78.  
  79. Thank you,
  80.  
  81. -xxxxxxxxxxx
  82. xxxxxxxxxxxxxxxxxxxxxxxxx
  83. xxxxxxxxxxxxxxxxxxxxxxxxx 
  84. -------------------------------------------------------------------------------
  85. USER       PID %CPU %MEM   SZ  RSS TT STAT   TIME COMMAND
  86. adw3345   1503  9.8  0.2  260  224 ?  R     20:32 sh spy
  87. -------------------------------------------------------------------------------
  88. #!/bin/sh
  89.  
  90. echo "" > .spylanew
  91.  
  92. if [ ! -f ".spyla" ]
  93. then
  94.     echo > .spyla 
  95. fi
  96.  
  97. for dir in `find /usr/spool/news/. -type d -print`  
  98. do
  99.  
  100.     lastacc="`grep $dir .spyla | awk ' { print $2 } ' `"
  101.  
  102.     if [ -z "$lastacc" ]
  103.     then
  104.         echo "$dir 0" >> .spyla
  105.         lastacc=0
  106.     fi
  107.  
  108.     hinum=$lastacc
  109.  
  110.     for files in `ls -1 $dir`
  111.     do
  112.         if [ -f $dir/$files -a $files -gt 0 ]
  113.         then
  114.             if [ $files -gt $hinum ]
  115.             then
  116.                 hinum=$files
  117.             fi
  118.  
  119.             from=`grep 'From' $dir/$files | line | \
  120.                               grep -i "\.rit\.edu" | line` 
  121.  
  122.             if [ ! -z "$from" ]
  123.             then
  124.                 cat $dir/$files >> \
  125.                                 `echo $from | cut -f2 -d" " |  cut -f1 -d"@" `  
  126.             fi    
  127.         fi
  128.     done
  129.  
  130.     echo "$dir $hinum" >> .spylanew
  131. done
  132. rm .spyla
  133. mv .spylanew .spyla
  134.  
  135. -- 
  136. -------------------------------------------------------------------------
  137. - Derrick Williams   Rochester Institute of Technology | Insert snappy  -
  138. - adw3345@ultb.isc.rit.edu     Computer Science        | quotation here -
  139. -------------------------------------------------------------------------
  140.