Click to See Complete Forum and Search --> : telnet negotiation


evansmb0
07-12-2003, 12:44 AM
any one know any resource to explain the telnet negotiation process. i'm trying to code a simple program that runs a telnet session to another machine. works find of other ports like 110 and 80. get odd characters when i connect on port 80. i was able to determin that it was part of the negotiation process, but have yet to find any resources with good detail on it. any know any good resources?

thanks

seabass55
07-12-2003, 01:33 AM
If there's not a telnet server running on a port then you will always get wierd stuff. Is telnet running on the computer that you are trying to login to on port 80, etc?

Seabass

cowanrl
07-12-2003, 07:29 AM
The RFCs on telnet are your best source of information, though maybe not always the most readable.
Go to:

http://www.rfc-editor.org

click on RFC Search and do a search on telnet. You'll find lots of interesting, detailed reading on telnet and how the protocol is supposed to operate.

RFC 854 is probably a good place to start.

bastard23
07-14-2003, 03:17 PM
evansmb0,

As an alternative, use 'netcat' instead of telnet. nc doesn't do telnet negotiation (unless you want it.) 8-bit clean as well.

Also, try capturing the telnet session with 'ethereal' and look at the decode packets. It usually helps to see a 'real' session as you read the documentation.

Have fun,
chris

chort
07-15-2003, 02:50 PM
This is probably a dumb question, but on the host you're trying to connect to, are you sure that telnetd was bound to port 80? Port 80 is normally reserved for HTTP and most likely was running Apache. In that case trying to open a normal telnet session to it is not going to work.

chrism01
07-16-2003, 06:39 AM
As he said; iirc telnet is port 23.
You might want to look at the Net::Telnet pkg in perl, either to save you doing the work, or look at the src to see how they did it.