forensics/endianness_v2
This commit is contained in:
parent
94acd9d239
commit
147cc5ec57
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
picoCTF{cert!f1Ed_iNd!4n_s0rrY_3nDian_188d7b8c}
|
|
@ -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