1832541 Members
6356 Online
110043 Solutions
New Discussion

telnet protocol

 
Pedro_61
New Member

telnet protocol

i open a tcp connection to port 23 telnet and receive from telnetd IAC,DO,TELOPT_ENV

how sould i reply to this to continue the negotiation , in order to authenticate and send commands trought tcp/ip
7 REPLIES 7
harry d brown jr
Honored Contributor

Re: telnet protocol


get ssh and make your life easier: http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

It's FREE!

live free or die
harry d brown jr
Live Free or Die
Pedro_61
New Member

Re: telnet protocol

i am building a library in C++ that negotiates with telnet protocol and receive parameters from an oracle database.

harry d brown jr
Honored Contributor

Re: telnet protocol

why not use odbc type interfaces to oracle?

live free or die
harry d brown jr
Live Free or Die
Pedro_61
New Member

Re: telnet protocol

because this library has to send commands to a voice mail platform trough telnet
harry d brown jr
Honored Contributor

Re: telnet protocol


Do you want oracle to telnet out to your voicemail system?

or

Do you want your voicemail system to telnet to your system that is running oracle?

live free or die
harry d brown jr
Live Free or Die
Elmar P. Kolkman
Honored Contributor

Re: telnet protocol

Why not lookup the telnet code used in Linux ?!

The protocol is straightforward if you take a close look at it. I don't know it by head, but the Linux code should serve you well, I guess.
Every problem has at least one solution. Only some solutions are harder to find.
Pedro_61
New Member

Re: telnet protocol

i want to telnet to the voicemail system

send_wont(socket,TELOPT_ENV);
recebeopt(socket);
send_wont(socket,TELOPT_TTYPE);
recebeopt(socket);
send_wont(socket,TELOPT_TERMSPEED);
recebeopt(socket);



send_wont(socket, TELOPT_BINARY);
send_will(socket, TELOPT_ECHO);
Sleep(2);

send(socket,"pdinis\r\n",10,0);
Sleep(2);
recebeopt(socket);

send_wont(socket, TELOPT_BINARY);
send_will(socket, TELOPT_ECHO);

Sleep(2);
send(socket,"password\r\n",12,0);
Sleep(2);
recebeopt(socket);

send_wont(socket, TELOPT_BINARY);
send_will(socket, TELOPT_ECHO);
Sleep(40);
send(socket, "cd;pwd;mkdir trotinete\r\n",26,0);
send_wont(socket, TELOPT_BINARY);




i have this i can log to the system but can´t create a directory (testing)


i have this message when i log in

"Last successfull login was .... waiting for disk quota checking"