I'm trying to negotiate a telnet connection with a socket. The socket is working,but the server is telling me that thing:
ÿýÿýÿûÿû
login:
The ÿýÿýÿûÿû
means 255 253 1 255 253 31 255 251 1 255 251 3
I read all the RFC docs but I don't understand what should I respond with to be able to send (string ascii data?) to the server, my wish is to run the login prompt successfully and then send commands to a server like "halt" or something else.
Thanks in advance for your answer.
From RFC 854:
That is, for every
WILL
, respondDONT
. For everyDO
, respondWONT
.In your case, you've received (see IANA assigned telnet options):
So you should respond:
Note that you don't have to know what 1, 3, or 31 actually mean. That's the beauty. You can refuse those options without even knowing their definition. You'll just default to the network virtual terminal.
Looking it up in RFC 854
Now looking up the parameter values in here: 1 := echo, 31 := window size.