home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!think.com!spool.mu.edu!solaria.mil.wi.us!jgreco
- From: jgreco@solaria.mil.wi.us (Joe Greco)
- Subject: Re: telnetd banner, source or hacks?
- Message-ID: <BzCGIt.n3t@solaria.mil.wi.us>
- Organization: Solaria Public Access UNIX - Milwaukee, WI
- References: <1992Dec11.201540.17431@welchgate.welch.jhu.edu>
- Distribution: usa
- Date: Wed, 16 Dec 1992 08:49:40 GMT
- Lines: 63
-
- In comp.sys.sun.admin article <1992Dec11.201540.17431@welchgate.welch.jhu.edu>, johnj@welchgate.welch.jhu.edu (John A. Johnston) wrote:
- : ...
- :Telnetd seems to have the message it displays at connection time hard
- :coded in, versus how it can be done with a tty by manipulating
- :gettytab.
-
- Yes, it does. This would seem like a trivially stupid and easy hack, and it
- is - except for the fact that most of the networking code available
- currently is oriented towards BSD4.4 and requires some tweaking to work
- under SunOS. Since I've vastly Berkeleyized my system, that's not too much
- of an issue for me.
-
- :I'm wondering if anyone has done this bit of system customization, and
- :how? The telnetd can probably be found is source form but I'm no C
- :whiz.
-
- Ironically, 4.3bsd-reno (and/or the net2 sources) seem to have provided
- hooks for this, but *still* wire it in. I took net2 sources (I believe) and
- patched them together, unwiring the braindeadedness in the process. Some
- pitfalls include having to create some of the libutil library (or including
- it in telnetd) and having to muck around with source to getty (this can
- *all* be obtained from net2, I believe).
-
- These comments all from a nearly year-old memory of what I did with the net2
- sources. I did the same thing with the original Berzerkeley networking
- release code, but it was a lot easier because I didn't have to hack in so
- much stuff.
-
- With the "91.03.25" release of telnet/telnetd, there's a directory/library
- called "libtelnet", and a file in it called "getent.c". This contains the
- truly offensive code - a stub. I clobbered it by copying in "gettytab.c" on
- top of it, which provides the gettytab-reading code. Then of course you
- need to make tweaks and modifications to get Berkeley44ized code to run
- under SunOS.
-
- Mine ended up looking like this....
-
- (aurora.jgreco.p0) 2:36am ~ 27 > telnet solaria
- Trying 192.98.72.11...
- Connected to solaria.mil.wi.us.
- Escape character is '^]'.
-
-
- Solaria Public Access UNIX - Milwaukee, WI
-
- Need help? Type "help".
-
- SunOS/BSD UNIX (solaria.mil.wi.us)
-
- (ttyp3) login: Login timed out after 60 seconds
- Connection closed by foreign host.
- (aurora.jgreco.p0) 2:43am ~ 28 >
-
- I can ship you the whole ball of wax, if you wish - but I warn you it may or
- may not be as easy for you to install. I've got the "util" library and a
- little concoction of my own called the "reno" library installed, which helps
- fill in library routines where Sun left off.
-
- ... Joe
-
- -------------------------------------------------------------------------------
- Joe Greco - System Administrator jgreco@solaria.mil.wi.us
- Solaria Public Access UNIX - Milwaukee, WI 414/321-9287
-