using telnetlib
Bjoern Schliessmann
usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Wed Feb 28 06:15:13 EST 2007
Phoe6 wrote:
>>>> import telnetlib
>>>> tn = telnetlib.Telnet("172.31.128.244")
>>>> tn.read_until("Login: ")
> '\r\nLogin: '
>>>> tn.write("root\n:")
^^^
With telnet, use "\r\n" for line breaks at *all* times to be on the
safe side. Also, what's the ":" at the end for?
Regards,
Björn
--
BOFH excuse #88:
Boss' kid fucked up the machine
More information about the Python-list
mailing list