CTF(capture the flag)

CG-CTF 部分crypto WP

2020-03-30  本文已影响0人  Du1in9

0x01 异性相吸

题目提示

二进制读取,相互异或即可,nctf{xor_xor_xor_biubiubiu}

0x02 Wiener Wiener Chicken Dinner

已知N,e,大概意思是将flag加密后再base64输出得到cipher_text

wiener是一种RSA的攻击手段

将N,e带入wiener解密脚本,分别可以得到p,q,e,d(这里只用到d)

在construct最后添加d即可生成RSA算法的解密私钥,按题意解密flag{nell_anima_ritrovo_la_speranza_che_nel_corpo_stanco_ormai}

上一篇下一篇

猜你喜欢

热点阅读