ctf-writeup/2023/AmateursCTF 2023/zipper
daffainfo e6c48e50f1 feat: grouped the challs 2024-01-09 16:59:32 +07:00
..
images feat: grouped the challs 2024-01-09 16:59:32 +07:00
README.md feat: grouped the challs 2024-01-09 16:59:32 +07:00

README.md

zipper

Stare into the zip and the zip stares back.

About the Challenge

We were given a zip file that contains a lot of txt files

preview

How to Solve?

First, you can get the first part by using exiftool and then check comment metadata

flag1

Part 1: amateursCTF{z1PP3d_

And then to obtain the second part, we need to check the information about the zip file first by using zipinfo command

zipinfo

Why are there two directories with the same name, and why does the second one have 17 bytes in it? If you unzip it manually, one of the directories will be overwritten; that's why we need to extract it differently.

To extract the flag, I created a python program to extract the file using a file_ as a prefix

import zipfile
z = zipfile.ZipFile('flag.zip')
for i, f in enumerate(z.filelist):
    f.filename = 'file_{0:03}'.format(i)
    z.extract(f)

And then use strings and grep to find the second part

flag2

Part 2: in5id3_4_

For the third part, you can use exiftool again and find Zip File Comment metadata

flag3

And for the last part, when you unzip the file you will notice there is a file with the same name

same_name

Open it and you will obtain the flag

flag4

amateursCTF{z1PP3d_in5id3_4_laY3r_0f_Zips}