forensics/endianness_v2
This commit is contained in:
parent
94acd9d239
commit
147cc5ec57
BIN
forensics/endianness_v2/challengefile
Normal file
BIN
forensics/endianness_v2/challengefile
Normal file
Binary file not shown.
1
forensics/endianness_v2/flag.txt
Normal file
1
forensics/endianness_v2/flag.txt
Normal file
@ -0,0 +1 @@
|
||||
picoCTF{cert!f1Ed_iNd!4n_s0rrY_3nDian_188d7b8c}
|
15
forensics/endianness_v2/solve.py
Executable file
15
forensics/endianness_v2/solve.py
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
with open('challengefile', 'rb') as file:
|
||||
content = file.read()
|
||||
|
||||
def chunks(l, n):
|
||||
for i in range(0, len(l), n):
|
||||
yield l[i:i + n]
|
||||
|
||||
buffer = []
|
||||
for word in chunks(content, 4):
|
||||
buffer.append(bytes(reversed(word)))
|
||||
|
||||
with open('challengefile.jpg', 'wb') as file:
|
||||
file.write(b''.join(buffer))
|
Loading…
Reference in New Issue
Block a user