CSICTF-Writeups/Crypto/Quick Math/exploit.py

8 lines
209 B
Python
Raw Normal View History

2020-07-31 18:20:47 +05:30
from sympy.ntheory.modular import crt
N = [86812553978993, 81744303091421, 83695120256591]
c = [8875674977048, 70744354709710, 29146719498409]
x = crt(N, c)[0]
print("Hex String:")
print(round(x ** (1. /3)))