>>People seem to have been interested in finding out who they are
>>being fingered by...so here is some code that will show you (well
>>it will show you what site is fingering you, using netstat...
>[code for program omitted]
>I tried using this program, however I ran into some difficulties. Is this
>part of the code that we should add to our .profile (.login) correct?
> ps -x | grep " fing$" > /dev/null
> if (( $? != 0 )); then
> nohup fing > dev/null &
> fi
>> you can then modify it to finger that site if you like).
>How would I go about doing this?
You would have to write code to strip the site out of the netstat output. This
would be somewhat machine specific, as these entries can look quit different,
depending on your environment. Then, one more system call to finger the site,
and you're there.
Quote:>Also, how would one go about tring to identify the actual user that is trying
>to finger you?
> Thanks
This is the good one. I've thought a lot about this one. Since there is no
"good" way to achieve this using the tools in place, you would almost have to
use finger to achieve this. My first thought was to comiple lists of users on
sites that finger me. As more fingers come in, compare the lists and keep the
results. After enough fingers, this list may be small enough to be of some use.
The obvious problem, how to strip the usernames out of the infinite number of
variations on fingerd running out there. Also, anyone with a diskless in their
office would show up on the finger list every time. Oh well, I probably won't
have time to mess with this one, if anyone has any success, I'm sure I'd like
to hear how they solved this one.
In response to the question about why on earth anyone would want to do this,
obviously the asker has never been plagued by those blank messages left on his
phone when someone calls and hangs up. I'm a little curious. Maybe someone
should work on using called-id to solve that one too. :)
Enjoy,
E
--
____ _____________________E_l_v_i_s______________________
/ ------ _) | | ||| | ||| | | ||| | ||| | | || Eric Hyyppa
| |_|_| |_|__________|||_|_|||_|_|_|||_|_|||_|_|_|| (406)586-1990