We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1f24fd4 + ed18c0f commit cadd06bCopy full SHA for cadd06b
1 file changed
scripts/evtx_dump_chunk_slack.py
@@ -40,7 +40,10 @@ def main():
40
last_allocated_offset = chunk_start
41
for record in chunk.records():
42
last_allocated_offset = record.offset() + record.size()
43
- sys.stdout.write(buf[last_allocated_offset:chunk_start + 0x10000])
+ try:
44
+ sys.stdout.buffer.write(buf[last_allocated_offset:chunk_start + 0x10000])
45
+ except:
46
+ sys.stdout.write(buf[last_allocated_offset:chunk_start + 0x10000])
47
48
49
if __name__ == "__main__":
0 commit comments