Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.9 - 'array.array' object has no attribute 'tostring' #1032

Closed
h3x2b opened this issue Feb 25, 2021 · 0 comments · Fixed by #1054
Closed

Python 3.9 - 'array.array' object has no attribute 'tostring' #1032

h3x2b opened this issue Feb 25, 2021 · 0 comments · Fixed by #1054

Comments

@h3x2b
Copy link

h3x2b commented Feb 25, 2021

Hello,
there is some issue with python 3.9.1 compatibility.

Configuration

impacket version:
impacket-0.9.22

Python version:
Python 3.9.1

Target OS:
Linux (Fedora 33)

Debug Output With Command String

$ python3 -c 'import impacket.ImpactPacket ; impacket.ImpactPacket.IP().get_packet()'
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.9/site-packages/impacket/ImpactPacket.py", line 784, in get_packet
if self.get_ip_len() == 0:
File "/usr/lib/python3.9/site-packages/impacket/ImpactPacket.py", line 882, in get_ip_len
return self.get_word(2)
File "/usr/lib/python3.9/site-packages/impacket/ImpactPacket.py", line 100, in get_word
(value,) = struct.unpack(order + 'H', bytes.tostring())
AttributeError: 'array.array' object has no attribute 'tostring'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant