import telnetlibhostserver = "http://www.telnetServer.com"newline = "n"username = "user02" + newlinepassword = "qwerty0987" + newlinetelnet = telnetlib.Telnet(hostserver)telnet.read_until("login: ")telnet.write(username)telnet.read_until("Password: ")telnet.write(password)while 1: command = raw_input("[shell]: ") telnet.write(command) if command == "exit": break telnet.read_all()
Name (required)
email (will not be published) (required)
Website