[INSHack2017]rsa16m

得到一份提示:

When you need really secure communications, you use RSA with a 4096 bit key. <br>
I want really really really secure communications to transmit the nuclear launch codes (yeah IoT is everywhere man) so I used RSA with a 16777216 bit key. Surely russians will not be able to factor that one ! <br>
File md5 : 1049a0c83a2e34760363b4ad9778753f

我们可以知道n,e,c。且n,c特别大,可以作为低加密指数攻击来做。

解密脚本:

from gmpy2 import*
from libnum import*

f=open('C:\\Users\\MIKEWYW\\Desktop\\BUURSA题目\\attachment\\tmp\\rsa.txt',"r")
f.readline()
c=int(f.readline().strip("\n").split("=")[1],16)
e=0x10001
m=iroot(c,e)[0]
print(n2s(m))

解得:

INSA{(I)NSA_W0uld_bE_pr0uD}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值