Skip to content

Commit

Permalink
load_header: Changed padding type from str to bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisbalbachan authored Nov 21, 2024
1 parent 3ce41be commit be68b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impacket/ImpactPacket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit be68b7e

Please sign in to comment.