To modify the default telnet banner...
1) Display the message catalog and redirect to a file...
|
2) Modify any message(s) you wish changed in /tmp/telnetd.msg
Remove the (%s) after the first telnet you see in this file...
Change this...
telnet (%s)\r\n"
To this...
telnet \r\n"
Save the file....
3) Generate a new message catalog /tmp/telnetd.cat using the modified file as imput...
# gencat /tmp/telnetd.cat /tmp/telnetd.msg
4) Backup the original message catalog file /usr/lib/nls/msg/en_US/telnetd.cat, and
replace it with /tmp/telnetd.cat
|
Telnet should now only display the word telnet and exclude the hostname.
No comments:
Post a Comment