Skip to content

Commit cadd06b

Browse files
author
Willi Ballenthin
authored
Merge pull request #75 from forensenellanebbia/master
Fixed issue w/ Python 3
2 parents 1f24fd4 + ed18c0f commit cadd06b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/evtx_dump_chunk_slack.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ def main():
4040
last_allocated_offset = chunk_start
4141
for record in chunk.records():
4242
last_allocated_offset = record.offset() + record.size()
43-
sys.stdout.write(buf[last_allocated_offset:chunk_start + 0x10000])
43+
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])
4447

4548

4649
if __name__ == "__main__":

0 commit comments

Comments
 (0)