プログラム script.py とその出力 out.txt が与えられた。
script.py は、以下の処理をするものだった。
flag.txt の内容を読み込み、それをもとに整数mを生成するnums.txt から3個の整数a, b, cを読み込むn=a**3+b**3-34*c**3とするmの65537乗をnで割った余りを計算し、ctとするn, 65537, ctを出力する
nの値を
A program script.py and its output out.txt were given.
What script.py does is:
flag.txt and generate an integer m based on that.a, b, c from nums.txt.n=a**3+b**3-34*c**3m to the 65537th power modulo n and name it ct.n, 65537, ct.
Putting the value of n to
最後の値
I tried to factorize the last value
について
得られた素因数を用い、以下のプログラムでflagが得られた。
via
I obtained the flag with this program using the prime factors: