iscc2024 钢铁侠
题目给了一张图片和一个文档
1 | N = 14333611673783142269533986072221892120042043537656734360856590164188122242725003914350459078347531255332508629469837960098772139271345723909824739672964835254762978904635416440402619070985645389389404927628520300563003721921925991789638218429597072053352316704656855913499811263742752562137683270151792361591681078161140269916896950693743947015425843446590958629225545563635366985228666863861856912727775048741305004192164068930881720463095045582233773945480224557678337152700769274051268380831948998464841302024749660091030851843867128275500525355379659601067910067304244120384025022313676471378733553918638120029697 |
图片可以使用
1 | C1: 4251903765968182205638908124165687238668595287571695511358978749873732873567860053619635513706860629805773126702224204954306825755589324527464790716772532623787179556779775087369588999862023585439168942061748409955378083217107531514314050827416670183525480868721628196105159997017084027522785400780651513529661262069204074033252051284855308622003846532448135219496999884685163059589703767874228257837954982643722710776540927585288400564462843552764511294609144617545553527647537299951955033541729951576068083284279065679857225030596781834329220650727813085463111501010998877779379864147619708358818420859785907336293 |
之后,我们可以通过顿悟编写脚本得到flag
1 | from Crypto.Util.number import * |
reference:
[网上脚本1][https://github.com/rkm0959/rkm0959_implements/blob/main/Half_GCD/code.sage]
[网上脚本2][https://github.com/ValarDragon/CTF-Crypto/blob/master/RSA/FranklinReiter.sage]
[P19.sage Franklin-Reiter攻击脚本][https://note.shenghuo2.top/01RSA%E5%9F%BA%E7%A1%80%E7%AF%87/P19.Franklin-Reiter%E6%94%BB%E5%87%BB%E8%84%9A%E6%9C%AC/]
[Franklin-Reiter相关消息攻击][https://blog.csdn.net/XiongSiqi_blog/article/details/130978226]
[相关信息攻击-Franklin-Reiter][https://blog.csdn.net/m0_74345946/article/details/132888197]