[問題] 有關使用telnetlib
應該是在交換控制訊息中 發生中斷的現象
請問有人有解決的方法嗎
tn.set_debuglevel(2)
tn.read_until("Login:")
tn.write(user + "\n")
tn.read_until("Password:")
tn.write(pswd + "\n")
以下是錯誤訊息
Telnet(192.168.10.1,23): recv '\xff\xfc\x01'
Telnet(192.168.10.1,23): IAC WONT 1
Telnet(192.168.10.1,23): recv
'\xff\xfb\x01\xff\xfb\x03\xff\xfd\x18\xff\xfb\x18\
xff\xfd\x1f\xff\xfb\x1f\xff\xfb"\xff\xfb\x05Login:'
Telnet(192.168.10.1,23): IAC WILL 1
Telnet(192.168.10.1,23): IAC WILL 3
Telnet(192.168.10.1,23): IAC DO 24
Telnet(192.168.10.1,23): IAC WILL 24
Telnet(192.168.10.1,23): IAC DO 31
Telnet(192.168.10.1,23): IAC WILL 31
Telnet(192.168.10.1,23): IAC WILL 34
Telnet(192.168.10.1,23): IAC WILL 5
Telnet(192.168.10.1,23): send 'admin\n'
Telnet(192.168.10.1,23): recv 'a'
Telnet(192.168.10.1,23): recv 'dmin'
--
※ 發信站: 批踢踢實業坊(ptt.cc)
※ 編輯: glenman 來自: 140.115.152.232 (03/23 03:28)
推
03/23 23:30, , 1F
03/23 23:30, 1F
→
03/24 05:11, , 2F
03/24 05:11, 2F
Python 近期熱門文章
PTT數位生活區 即時熱門文章