Re: telnet session

2006-03-29 Thread Eddie Corns
[EMAIL PROTECTED] writes: >hi >i am using a telnet session to simulate an authentication mechanism >USER = "user" >PASSWORD = "password" >try: >telnet = telnetlib.Telnet(HOST) >telnet.set_debuglevel(5) >telnet.read_until("login: ") >telnet.write(USER + "\n") >

Re: telnet session

2006-03-29 Thread Paul Rubin
[EMAIL PROTECTED] writes: > When i purposely input a wrong password, it "hangs" at the login prompt > waiting for > login and Password. The host i am telnetting to is a unix server. > How can i "exit" this login prompt if the user keys in wrong password > in my script? It looks to me like after y