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