Skip to content

TypeError: can't concat str to bytes #1819

@zmw12306

Description

@zmw12306

Configuration

impacket version: Impacket v0.12.0
Python version: Python 3.10.12
Target OS: Linux ubuntu

Debug Output With Command String

Raw IP packet: b'o\x05\x05\x05\x05\x05\x05\x05\x05\x01\x05s\x05\x05\x05\x05q\x03\x05\x05\x05\x05p\x01\x05\x05'
Traceback (most recent call last):
File "/home/youwei/XDiff/Impacket/IP.py", line 22, in
ip_packet = decoder.decode(Ip_packet)
File "/home/youwei/.local/share/pipx/venvs/impacket/lib/python3.10/site-packages/impacket/ImpactDecoder.py", line 191, in decode
ip6_packet = IP6.IP6(buffer)
File "/home/youwei/.local/share/pipx/venvs/impacket/lib/python3.10/site-packages/impacket/IP6.py", line 32, in init
self.load_header(buffer)
File "/home/youwei/.local/share/pipx/venvs/impacket/lib/python3.10/site-packages/impacket/ImpactPacket.py", line 435, in load_header
aBuffer += '\x00'
TypeError: can't concat str to bytes


### PCAP  
Raw IP packet: b'o\x05\x05\x05\x05\x05\x05\x05\x05\x01\x05s\x05\x05\x05\x05q\x03\x05\x05\x05\x05p\x01\x05\x05'

Metadata

Metadata

Labels

mediumMedium priority item

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions