Challenges
Serial number check chain
Reverse engineering
Medium
Serial check
Solves: 8
Serial number check chain
Author: CyberSamSU
Points
40
Many "serial number" checkers use a rolling checksum: acc = (acc * K + kod) mod 256, where acc is the current checksum, and kod is the ASCII code of the next character. The program saves the acc value after each character as a "checkpoint".
Given: initial acc0 = 2, K = 173. The checkpoints after each character (acc1, acc2, ...):
156 173 66 236 203 128 251 241 16 38 13 60 241 79 204 61 165 228 124
45 210 88 245
At each step, if acc_i and the previous acc_(i-1) are known, the character code can be found directly via kod = (acc_i - K * acc_(i-1)) mod 256.
To submit a flag, log in.