diff --git a/impacket/ImpactPacket.py b/impacket/ImpactPacket.py index 79f3f4f07..9d5391777 100644 --- a/impacket/ImpactPacket.py +++ b/impacket/ImpactPacket.py @@ -432,7 +432,7 @@ def load_header(self, aBuffer): if(len(aBuffer) < hdr_len): #we must do something like this diff = hdr_len - len(aBuffer) for i in range(0, diff): - aBuffer += '\x00' + aBuffer += b'\x00' self.set_bytes_from_string(aBuffer[:hdr_len]) def get_header_size(self):