Traceback (most recent call last): File "telnet.py", line 12, in <module> tn.read_until("Username:".decode()) AttributeError: 'str' object has no attribute 'decode'
Traceback (most recent call last): File "telnet.py", line 12, in <module> tn.read_until("Username:".decode()) AttributeError: 'str' object has no attribute 'decode'
Traceback (most recent call last): File "telnet.py", line 12, in <module> tn.read_until("Username:".decode()) AttributeError: 'str' object has no attribute 'decode'
Traceback (most recent call last): File "telnet.py", line 13, in <module> tn.write(user) File "/usr/local/lib/python3.6/telnetlib.py", line 287, in write if IAC in buffer: TypeError: 'in <string>' requires string as left operand, not bytes
Traceback (most recent call last): File "telnet.py", line 13, in <module> tn.write(user) File "/usr/local/lib/python3.6/telnetlib.py", line 287, in write if IAC in buffer: TypeError: 'in <string>' requires string as left operand, not bytes