home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.admin
- Path: sparky!uunet!mcsun!sunic!kth.se!lysator.liu.se!pen
- From: pen@lysator.liu.se (Peter Eriksson)
- Subject: Re: Identifying user's remote IP address at login?
- Message-ID: <1978@lysator.liu.se>
- Sender: news@lysator.liu.se
- Nntp-Posting-Host: robin.lysator.liu.se
- Organization: Lysator Academic Computer Society, Linkoping University, Sweden
- References: <1992Oct29.004719.9096@news.ysu.edu> <BxM36A.5HA@wang.com> <1duaqkINNj2o@fnnews.fnal.gov> <CKD.92Nov12161221@loiosh.eff.org> <1992Nov15.031633.16012@bradley.bradley.edu>
- Date: Mon, 16 Nov 1992 08:53:13 GMT
- Lines: 23
-
- brad@bradley.bradley.edu (Bradley E. Smith) writes:
-
- >why not write a program similar to this one.....and use getpeername
-
- Won't work. Most systems use a telnet daemon that "insulates" the user
- processes from the network stream so the user process can't do the
- getpeername() call. What one *could* do if one is really brave is to
- write a program that opens /dev/kmem and locates the telnetd process that
- handles _your_ session, and then walk thru the files it has open looking for
- the network connection socket... Or one could rewrite telnetd to either write
- the IP number into the log files (that is what I did. And then I rewrote
- "who", et al to use nameserver lookups for the IP numbers.) or have it write
- the full domain name into a separate log file...
-
- Either way requires root access.
-
- /Peter
-
-
- --
- Peter Eriksson pen@lysator.liu.se
- Lysator Academic Computer Society ...!uunet!lysator.liu.se!pen
- University of Linkoping, Sweden I'm still bored. Flame me again.
-