Skip to main content
Challenges SPI flash: environment block
Hardware Easy Finding the U-Boot environment (env) block inside an SPI NOR dump Solves: 4

SPI flash: environment block

Author: CyberSamSU
Points
15

A router that stopped working arrived at a repair workshop. The technician read its SPI NOR flash chip with a programmer and obtained the dump flash.bin (256 KB). At the start there is a bootloader (random-looking bytes), in between there are gaps filled with 0xFF, followed by the kernel and settings.

The bootloader's settings are stored in the U-Boot environment (env) block: a 4 KB (0x1000) block whose first 4 bytes are the CRC32 value (little-endian) of the remaining 4092 bytes, followed by kalit=qiymat strings, each ending with \0, and a double \0\0 at the end.

Find the factory_token variable that was written to the device at the factory. Its value is base64-encoded. The dump may also contain an old, damaged copy of the env. Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).

Attached files
flash.bin Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −1 pts Log in
Hint 2 −3 pts Log in
Hint 3 −4 pts Log in
To submit a flag, log in.

First solvers

1. Mirjaxon Qaxxarov 24.11.2026
2. Odam 25.11.2026
3. Asmaa Mottery 28.11.2026
4. Doston Allayarov 28.11.2026