Мемы с совой (Owl Memes)
Мемы с совой (Owl Memes)
Platform: hackerlab | Category: Forensics | Type: Challenge | Difficulty: Easy | OS: Windows | Author: XESXOR | Date: 2025-12-26 | Status: Solved Techniques: Deleted file recovery with icat, Disk image forensics, FAT32 partition analysis
Summary
Task: Disk image with owl memes on a flash drive. Solution: Used mmls to find FAT32 partition, fls to list files and find deleted file marked with asterisk, icat to recover deleted meme7.jpg containing the flag.
Мемы с совой (Owl Memes) — Hackerlab
Description
Мой друг любит хранить мемы с совами на отдельной флешке. Интересно, зачем?
File: owl.zip
Analysis
-
Extracting the archive:
owl.zipcontainsowl_memes.zipowl_memes.zipcontains filesomething(~2GB) — this is a disk image
-
Analyzing disk structure:
bash read-only • copy allowedmmls something
DOS Partition Table
Offset Sector: 0
Units are in 512-byte sectors
Slot Start End Length Description
000: Meta 0000000000 0000000000 0000000001 Primary Table (#0)
001: ------- 0000000000 0000002047 0000002048 Unallocated
002: 000:000 0000002048 0004194303 0004192256 Win95 FAT32 (0x0b)
FAT32 partition starts at sector 2048.
- Listing files on the partition:
bash read-only • copy allowedfls -o 2048 something
r/r 4: meme1.jpg
r/r 6: meme2.jpg
r/r 8: meme3.jpg
r/r 10: meme4.jpg
r/r 12: meme5.jpg
r/r 14: meme6.jpg
r/r * 13: _eme7.jpg
Found a deleted file _eme7.jpg (inode 13), marked with asterisk *.
Solution
Recovering the deleted file using icat:
bash read-only • copy allowedicat -o 2048 something 13 > meme7_deleted.jpg
Parameters:
-o 2048— partition offset in sectorssomething— disk image file13— inode number of the deleted file
Opening the recovered image — it's an owl meme with the flag written on it.
Theory
Why deleted files can be recovered in FAT32:
When FAT32 deletes a file:
- Replaces the first character of the name with
0xE5(displayed as_) - Marks clusters as free in the FAT table
- Does NOT overwrite the actual file data
Data remains on disk until overwritten by new files.
The Sleuth Kit Tools
| Command | Purpose |
|---|---|
mmls | Show partition table |
fls | List files (including deleted) |
icat | Extract file contents by inode |
fsstat | Filesystem information |
blkcat | Extract block contents |
| |
Alternative Tools
- Autopsy — GUI for The Sleuth Kit
- FTK Imager — Windows GUI for forensics
- photorec — automatic file recovery by signatures