点击此处获得更好的阅读体验
WriteUp来源
https://dunsp4rce.github.io/csictf-2020/crypto/2020/07/21/Quick-Math.html
by anishbadhri
题目描述
Ben has encrypted a message with the same value of 'e' for 3 public moduli
n1 = 86812553978993
n2 = 81744303091421
n3 = 83695120256591
and got the cipher textsc1 = 8875674977048
c2 = 70744354709710
c3 = 29146719498409
Find the original message. (Wrap it with csictf{})
题目考点
- RSA e过小
解题思路
The given problem is a typical example of hastad attack. Given 3 pairs of n
and c
with the same value of e=3
, the original message can be decoded.
1 | from pwn import remote |
Flag
1 | csictf{h45t4d} |