|
|||||||
This is a discussion on "Telnet Negotiations" in the Top Mud Sites MUD Coding forum : I just got back into coding my mud this month after a long semester of college - took 21 credits.. will never do that again.. Nevertheless.. I have been implementing telnet negotiations such as the echo option. My ultimate goal was to have asterisks "*" in place of user passwords to resolve the security risk of somebody overseeing it. After sending IAC DO ECHO to the client, i receive IAC WILL ECHO. For every character received while the client is in the ENTER_PASS state, I send an asterisk to the client. For telnet, this works great - it does exactly what ... |
|
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our MUD community today! If you have any problems with the registration process or your account login, please contact us. If you are a registered member of the old TMS forums, please click here
|
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
New Member
Join Date: Mar 2003
Posts: 29
![]() |
I just got back into coding my mud this month after a long semester of college - took 21 credits.. will never do that again..
Nevertheless.. I have been implementing telnet negotiations such as the echo option. My ultimate goal was to have asterisks "*" in place of user passwords to resolve the security risk of somebody overseeing it. After sending IAC DO ECHO to the client, i receive IAC WILL ECHO. For every character received while the client is in the ENTER_PASS state, I send an asterisk to the client. For telnet, this works great - it does exactly what I want it to.. However, for clients such as ZMud, a player can enter input it two places.. directly on the console screen like telnet.. or in the input box at the bottom of the screen. This input box is giving me issues.. It writes whatever the user types to the console screen.. and then echos it to the server.. the server thinks it should echo the characters the user types because the client sent IAC WILL ECHO.. Thus, the client will see ouput on the console screen such as: Username: testuser Password: testpass ******** Does anybody know how to resolve this issue? Any help will be greatly appreciated. Thanks in advance! - Khadgar |
|
|
|
|
|
#2 | |
|
New Member
Join Date: Mar 2003
Posts: 29
![]() |
I managed to get a hold of the Zugg and he had the following to say about the issue:
Quote:
|
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2005
Posts: 25
![]() |
I believe zMUD supports the TERMINAL-TYPE option, which will allow you to distinguish it.
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Oct 2002
Posts: 274
![]() |
Mushclient also correctly identifies it and several glitches that existed in negotions have been corrected in recent versions. There is even an option you can turn on to convert certain codes, which some muds use to indicate a prompt, into a "newline+charage return" as they arrive, so the client actually sees a prompt. Other clients get around this I believe by keeping the current 'state' of the input and matching on partial lines, which haven't terminated. I'm not sure if I agree with the reasoning of that allowing this, except that you can't do:
Match="You see a red bunny", sequence=1 Match="You see a *", sequence=2 And avoid having the second one match on a partial line, even when it should only match the first one. While there are obviously solutions to this, Nick chose to simply only deal with lines that end with /n/r. Anyway, sorry for the side track, but I think most clients do respond to the client ID sequence, but I might be wrong. |
|
|
|
|
|
#5 | |
|
New Member
Join Date: Mar 2003
Posts: 29
![]() |
I finally got a little break again before next semester
I have a quick dumb question concerning the NAWS protocol. The following quote is from the NAWS RFC: Quote:
What if one of the 16 bit values is 255? Should I expect another occurance of 255? Thanks in advance. |
|
|
|
|
|
|
#6 |
|
New Member
Join Date: Mar 2003
Posts: 29
![]() |
Whenever I use the NAWS protocol, I noticed localecho on telnet does not seem to work anymore. Would there be a reason for this?
I know I can use the ECHO protocol and send any input I receive back to the client as output. However, always doing this seems like unnecessary processing on the server side. Thanks again! - Khadgar |
|
|
|
|
|
#7 | ||
|
Member
|
Quote:
Thus, if you were receiving a NAWS subnegotiation which reported a width and height of 255, 256, then you would receive: IAC SB NAWS 0 255 255 1 0 IAC SE Note the double-255. |
||
|
|
|
![]() |
| Thread Tools | |
Telnet Negotiations - Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Java Telnet Applet | Crystal | MUD and RPG Webmasters | 3 | 03-19-2008 08:42 AM |
| Beyond Telnet | Rathik | Advanced MUD Concepts | 52 | 09-01-2006 01:21 AM |
| Telnet Options? | Raewyn | MUD Coding | 1 | 02-05-2006 09:58 AM |
| Why not exploit the telnet protocol? | erdos | Advanced MUD Concepts | 46 | 10-02-2003 07:55 PM |
| Cant type in telnet window! | Chobbie | Newbie Help | 2 | 07-17-2002 02:38 PM |
|
|