LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   telnet login control with sockets...how the heck does this work? (https://www.linuxquestions.org/questions/programming-9/telnet-login-control-with-sockets-how-the-heck-does-this-work-219409/)

ooagentbender 08-18-2004 05:18 PM

telnet login control with sockets...how the heck does this work?
 
Ok I know how to socket program but I wanted to make a program that works with a telnet port on my linux box at home (mostly for my own education and fun). I tried to download the telnet applet I see all over the internet (im doing it in java becasue im making it for my java enabled phone) but all the links to the code are broken on all the websites(ie if anyone has the telnet applet code I would much appreciate it). I just can't figure out whats happened when I establish a connection with the telnet port on my box because all the dumps are in hex. And even when I convert them to decimal they don't match the option numbers from the rfc. If anyone knows exactly what happens when you first establish a telnet connection and EXACTLY how the options are negotiated and in what order, I would be very grateful.

infamous41md 08-18-2004 08:17 PM

it's all in the rfc my friend. with the rfc, and 'tcpdump -X -s 1500 tcp port 23' you should have all you need.

ooagentbender 08-19-2004 09:14 PM

I looked at the rfc but I didn't see an example of the order in which things take place, and I will look at tcpdump because I'm assuming that will give me a hex or otherwise vizualization of whats comming in over the packets? Thanks


All times are GMT -5. The time now is 04:18 AM.