- Category: Crypto
- Score: 213/500
- Solves: 21/428
This is actually a broken version of
RNG+++
.
I encrypted the flag and messages by xoring them with a random number generator.
You got a simple LCG with randmsg
are encrypted by the same way.
The first thing to notice is randmsg
generated messages are all decimal digits, and they are 0x30
to 0x39
in ASCII. It is obvious that their binary representation are all 0011????
, so we can get serveral non continuous bits of states
The most simple unintended solution is to use z3
. You just let the state be
Another more mathematical unintended solution by @Kuruwa: Since
The intended solution will be in the writeup of RNG+++
.