From af51dfd1e0bf4472200b4a2d560cd70df7904f9c Mon Sep 17 00:00:00 2001 From: alexisbalbachan Date: Wed, 27 Nov 2024 15:47:29 -0300 Subject: [PATCH] load_header: Changed padding type from str to bytes (#1851) --- impacket/ImpactPacket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impacket/ImpactPacket.py b/impacket/ImpactPacket.py index 79f3f4f077..9d53917770 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):