1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/usr/bin/python3 -u import random import os max_retries = 100 for _ in range(max_retries): print("Hints:") for i in range(9): print(random.getrandbits(32)) real = random.getrandbits(32) print("Guess:") resp = input() if int(resp) == real: print("FLAG", os.getenv("FLAG")) print("No tries left, sorry!")