RLotto
EASY
, Crypto
CHALLENGE DESCRIPTION: Are you ready to win lottery? Guess the Random Lotto Numbers. It's TIME you become a millionaire.
In the given code we can see that it is using seed = int(time.time())
to generate 5 random digits using random.randint(1, 90)
It will give us the first 5 random digits and we have to guess next 5 to get the flag.
Because we have the first 5 random generated digits we can brute force the seed. Initial seed value would be time.time()
befor we connect to server and incriment it by one.
when we get the seed we can generate the next 5 digits.
python code:
Flag: HTB{n3v3r_u53_pr3d1c74bl3_533d5_1n_p53ud0-r4nd0m_numb3r_63n3r470r}
Last updated
Was this helpful?