forensics/endianness_v2
This commit is contained in:
Binary file not shown.
@@ -0,0 +1 @@
|
||||
picoCTF{cert!f1Ed_iNd!4n_s0rrY_3nDian_188d7b8c}
|
||||
Executable
+15
@@ -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))
|
||||
Reference in New Issue
Block a user