Device serial number algorithm
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>}