-
Problem file: lost_data.zip
- Points 100, Genre For + Misc, Author hiww, Solves 54.
Description
Guess or try xxxxx in flag and replace to the correct word.
xxxxx is uppercase.
No need decipher the password of xxxxx.zip.
lost_data.zip
Hint:
Refer the file contents of xxxxx.zip.
filesystem is answer.
(For + Misc, 100 points)
-
Step-1.(Recover QR-code from data.zip)
- Unzip the data.zip.
-
- The first 4 bytes of each file is
89 2E 2E 2E
.
- The first 4 bytes of each file is
-
- Even if using the file command the extension is unknown.
-
- But, there are some hint in the files[1..3].
-
- For example,
49 44 41 54
in hex andIDAT
in ascii.
- For example,
-
- Replace the first 4 bytes to
89 50 4E 47
.
- Replace the first 4 bytes to
-
- The lost data was PNG.
-
- Scan QR-code by QR-code-scanner(e.g. zbarimg, iOScamera and human).
-
QR-code: HarekazeCTF{Y0u_G0t_FuNNy_F1ag_?DF?_T?_is_xxxxx}
- Unzip the data.zip.
-
Step-2.(Investigate the xxxxx.zip)
-
By the way, have you ever used SD cards that can not add new files?
-
The filesystem have some restrictions.
-
You can know some information by unzip the xxxxx.zip(without password).
-
- The contents of xxxxx.zip seems to be fatxxx(file-size is 0KB).
-
- Total file number(
512
) means filesystem's number of files limit.
- Total file number(
-
- Total number of files = Number of files limit in root directory of FAT16.
-
- This is why that
FAT16
is correct answer of xxxxx.
- This is why that
-
-
-
Answer(FLAG):
HarekazeCTF{Y0u_G0t_FuNNy_F1ag_?DF?_T?_is_FAT16}
-
Addition:
- You can check your filesystem using
df -T
.
- You can check your filesystem using
Reference: https://support.microsoft.com/ja-jp/help/436213.