i am in desperate need to be able to log in to a telnet server. i am writing a program in C that acts as a telnet client, which will automatically login.
When i open the tcp connection, the login script appears.
if i write the username to teh socket then it gets to teh password prompt. However, if i just tell it to write the password to teh socket, it puts the password before the password prompt, and after the login.
i need to be able to tell when the word "Password:" is read from teh socket, so that when it does, it can send the password.
please can someone tell me how to do this.