This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: telnetlib crash in Python3 while receiving un-printable characters from server
Type: crash Stage: patch review
Components: Library (Lib) Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: hoang nguyen, shei dan
Priority: normal Keywords: patch

Created on 2019-07-21 09:17 by hoang nguyen, last changed 2022-04-11 14:59 by admin.

Files
File name Uploaded Description Edit
test.py hoang nguyen, 2019-07-21 09:17
Pull Requests
URL Status Linked Edit
PR 14877 closed python-dev, 2019-07-21 09:22
PR 22814 open shei dan, 2020-10-20 11:44
Messages (1)
msg348233 - (view) Author: hoang nguyen (hoang nguyen) * Date: 2019-07-21 09:17
```
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.7/site-packages/Pwn/Pwn.py", line 209, in io
    self.con.interact()
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/telnetlib.py", line 553, in interact
    sys.stdout.write(text.decode('ascii'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 41: ordinal not in range(128)
```
crash detail

set up a netcat server:
```
cat /dev/urandom | nc -l 127.0.0.1 8888
```

test.py
```
import telnetlib

tn = telnetlib.Telnet('127.0.0.1', 8888)
tn.interact()
```
History
Date User Action Args
2022-04-11 14:59:18adminsetgithub: 81821
2020-10-20 11:44:22shei dansetnosy: + shei dan
pull_requests: + pull_request21770
2019-07-21 09:22:39python-devsetkeywords: + patch
stage: patch review
pull_requests: + pull_request14663
2019-07-21 09:17:08hoang nguyencreate