CCTF_Public/writeups/vol9_rnd1/asinev/to_players/asinev.py

11 lines
206 B
Python
Raw Normal View History

2022-09-10 10:53:53 +00:00
#!/usr/bin/env python3
from Crypto.Util.number import *
from secret import x, y, flag
print(f'x*y + 37*x + 13*y = {x*y + 37*x + 13*y}')
m = bytes_to_long(flag)
c = pow(m, 31337, x * y)
print(f'c = {c}')