2.需要python库:gmpy2,pycrypto,pypcapfile 3.将脚本和bob_alice_encrypted.pcap放在一起,然后运行脚本 image fromCrypto.PublicKeyimportRSAimportgmpy2# Alice's public encryption parametersn1=long(1696206139052948924304948333474767)e=long(65537)# Bob'sn2=long(3104649130901425335933838103517383)# Yes! We can factor...
2.需要python库:gmpy2,pycrypto,pypcapfile 3.将脚本和bob_alice_encrypted.pcap放在一起,然后运行脚本 代码语言:javascript 复制 from Crypto.PublicKey import RSA import gmpy2 # Alice's public encryption parameters n1 = long(1696206139052948924304948333474767) e = long(65537) # Bob's n2 = long(3104649...
flag{wethinkwehavetheflag} 12.RSA RSA加密原理:http://www.ruanyifeng.com/blog/2013/06/rsa_algorithm_part_one.html文件中得到q,p,e的值,开始写脚本, 代码语言:javascript 复制 #-*-coding:utf-8-*-importgmpy2 p=473398607161q=4511491e=17phi=(p-1)*(q-1)print gmpy2.invert(e,phi) 得到flag...