Crypto - The Slot Whisperer
We were given a remote service:
nc chall.0xfun.org 37246It prints 10 numbers and asks us to predict the next 5 spins.
We are also given the source code:
class SlotMachineLCG:
def __init__(self, seed=None):
self.M = 2147483647
self.A = 48271
self.C = 12345
self.state = seed if seed is not None else 1
def next(self):
self.state = (self.A * self.state + self.C) % self.M
return self.state
def spin(self):
return self.next() % 100🧪 Solver Script
Flag:
0xfun{sl0t_wh1sp3r3r_lcg_cr4ck3d}
Last updated

