Description:
Connect to OTP generator server, and try to find one OTP.
nc 66.172.27.77 35156
Here is the [E]ncryption function.
As we can see, the otp is the concatenation of template_phrase and 18-bytes passphrase and the encrypted OTP are compute as:
The server uses 2048-bits key and the public exponent is 3 (so small) and the otp is small too, so the cube of otp is smaller than the modulus. We can easily compute the otp by computing the cube root of encrypted OTP:
I got an encrypted OTP then computed with sage:
Submit the OTP and get the flag 😀
That’s all for this challenge. So easy.
1 comments