endianness_v2_temp

This commit is contained in:
Maxime Vorwerk
2025-02-15 18:40:54 +01:00
parent 365d9a82b1
commit a3d85283ee
3 changed files with 15 additions and 0 deletions

BIN
endianness_v2/challengefile Normal file

Binary file not shown.

View File

15
endianness_v2/sol.py Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env python3
from pwn import *
with open("challengefile", "rb") as f:
file = f.read()
log.info(f"length: {len(file)}")
reorder = b""
for i in range(len(file)//4):
reorder += file[i+3:i+4] + file[i+2:i+3] + file[i+1:i+2] + file[i:i+1]
log.hexdump(reorder)