Skip to main content
Challenges Device serial number algorithm
Hardware Expert Serial number Solves: 11

Device serial number algorithm

Author: CyberSamSU
Points
160

Manufacturers often add a simple checksum to device serial numbers — this is to easily detect fake/random serial numbers. In our device, the serial number consists of 6 data bytes (D0..D5) and 1 checksum byte:

checksum = (7 × (D0+D1+D2+D3+D4+D5) + 13) mod 256

Sample (complete, nothing hidden): bytes = DB 77 DD 2E BB 86, checksum = 5F.

Now, the attached seriya_raqamlari.txt file provides the serial numbers of 11 devices — in each, one byte (??) is hidden, but the checksum is known. Because the formula is linear, each hidden byte can be calculated modulo 256.

Note: the number 7 is invertible modulo 256 (gcd(7,256)=1), meaning there is a number 7⁻¹ such that 7 × 7⁻¹ ≡ 1 (mod 256). In Python: pow(7, -1, 256).

Find each hidden byte, read it as an ASCII character and combine them in the order of the devices — this will form a word.

Flag: BAYROQ{HW_SERIAL_<SOZ>}

Attached files
seriya_raqamlari.txt Log in to download
SHA-256 checksums
seriya_raqamlari.txt: 9c589ec17f1b48a35e6e0daa5d7e2147d7cbb4b9bc504ecbf6d0ab063bf8067e
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −16 pts Log in
Hint 2 −32 pts Log in
Hint 3 −48 pts Log in
To submit a flag, log in.

First solvers

1. W.o.X 09.09.2026
2. Stiv_084100 10.09.2026
3. Абдул 15.09.2026
4. Лазиз 01.10.2026
5. testrejim 09.10.2026
6. Raumdeuter 09.10.2026
7. 11111tttt 09.10.2026
8. Mirjaxon Qaxxarov 26.10.2026
9. Odam 04.11.2026
10. Mahfuza 11.11.2026