Challenges
File header (magic bytes) recovery
Digital forensics
Easy
File header
Solves: 5
File header (magic bytes) recovery
Author: CyberSamSU
Points
15
Each file format has its own specific magic bytes (header signature) at the beginning of its file — the operating system determines the file type through these byte(s) even without an extension.
The first 4 bytes (magic bytes) of the following nomalum_fayl.dat file are filled with 0 — everything else is preserved. The first 32 bytes of the file:
0000: 00 00 00 00 14 00 00 00 08 00 26 97 1e 5d 53 23
0010: e7 73 60 00 00 00 5e 00 00 00 09 00 00 00 78 61
Table of magic bytes for some popular file types:
| File type | Magic bytes (hex) |
|---|---|
ZIP / DOCX / JAR | 50 4b 03 04 |
PNG | 89 50 4e 47 |
JPEG | ff d8 ff |
PDF | 25 50 44 46 |
GIF89a | 47 49 46 38 |
Determine the file type, restore the header (replace the first 4 bytes), then open the file and find the flag in it.
Attached files
nomalum_fayl.dat
Log in to download
SHA-256 checksums
nomalum_fayl.dat: 6213d4394471ebb3b70fc14d1f7bbb21f240086570d2bc768dbeca4d28f83ba0
Theory: learn the topic
To submit a flag, log in.