home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / hackers / 1953 < prev    next >
Encoding:
Text File  |  1993-01-23  |  2.5 KB  |  57 lines

  1. Newsgroups: alt.hackers
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!news.cs.columbia.edu!news!bm
  3. From: bm@shadow.columbia.edu (Blair MacIntyre)
  4. Subject: Re: "Catching Peppers" program
  5. In-Reply-To: rasas@minyos.xx.rmit.oz.au's message of 15 Jan 1993 10:08:40 GMT
  6. Message-ID: <C19rMA.51w@cs.columbia.edu>
  7. Sender: news@cs.columbia.edu (The Daily News)
  8. Reply-To: Blair MacIntyre <bm@cs.columbia.edu>
  9. Organization: Columbia University
  10. References: <1j5108INNfrb@msuinfo.cl.msu.edu> <1j62f8INN9d2@escargot.xx.rmit.OZ.AU>
  11. Date: Fri, 22 Jan 1993 19:03:45 GMT
  12. Approved: me.
  13. Lines: 42
  14.  
  15. >>>>> On 15 Jan 1993 10:08:40 GMT, rasas@minyos.xx.rmit.oz.au (Greg
  16. >>>>> Patten) said:
  17.  
  18. Greg> friedenb@egr.msu.edu (Gedaliah Friedenberg) writes:
  19.  
  20. >A few months ago there was a script posted which send mail
  21. >to yourself whenever your account was fingered.  In the mail
  22. >was the name and email address of the person fingering your
  23. >account.  I think that the post was entitled "Catching Peepers"
  24. >or something like that.  Could someone repost it, or send it
  25. >to me?  Thanks
  26.  
  27. Greg> I'd really like to see this too, I missed it last time..
  28.  
  29. Well, I tried this a while back, and (assuming a standard finger
  30. program!) only a limited subset of "cases" is possible.
  31.  
  32. What we did was run a program which created a FIFO called (surprise!)
  33. ~/.plan 
  34. and ran a TCL script each time the FIFO was read.  In the script we
  35. tried such things as looking through "ps auxw" for someone who is
  36. fingering you and then putting in the resulting .plan output something
  37. like "Rick, get back to work, you deadbeat!"  and logging the event to a
  38. file.  If nobody was fingering me, I then did this
  39.     set cornell [string match "* 128.84.237.*" $netstat]
  40.     if {$cornell == 1} {echo "(Katy, you deadbeat, get to work!  Like me!)"}
  41.     if {$cornell >= 0} {echo $cornell [index $netstat $cornell]}
  42. since the only person connecting to my machine from that subnet would be
  43. my girlfriend. :-)  You could check the port to make sure it was a
  44. finger, I suppose.  
  45.  
  46. Problems:  you can only find the ID of the person if it's on a local
  47. machine (or you have login privs on the other machine).  You need to be
  48. careful about deciding if someone is fingering you, based on the output
  49. of "ps aux".
  50.  
  51. Alas, I can't use that program any more since FIFO's don't work over NFS
  52. so when people finger me from other than my home machine (one of dozens)
  53. their finger process doesn't wake up the program hanging off the fifo.
  54. Sigh.   
  55. --
  56. Blair MacIntyre --- bm@cs.columbia.edu --- CS Department, Columbia University
  57.