考点RSA记事本打开文件pub.key用RSA公私钥分解 Exponent、ModulusRsa公私钥指数、系数(模数)分解--查错网得到模数和公钥指数方法二先安装OpenSSLWindows版Win32/Win64 OpenSSL安装器 - Shining Light Productions并在环境变量中配置查看模数和公钥将模数C0332C5C64AE47182F6C1C876D42336910545A58F7EEFEFC0BCAAF5AF341CCDD转为十进制86934482296048119190666062003494800588905656017203025617216654058378322103517用网站factordb.com得到两个大素数pqp285960468890451637935629440372639283459q304008741604601924494328155975272418463安装rsa库和gmpy2库import gmpy2 import rsa n86934482296048119190666062003494800588905656017203025617216654058378322103517 p285960468890451637935629440372639283459 q304008741604601924494328155975272418463 e65537 phi(p-1)*(q-1) dgmpy2.invert(e,phi) privkey rsa.PrivateKey(n, e, d, p, q) with open(D:\\BUUCTF\\output\\flag.enc, rb) as file: text file.read() message rsa.decrypt(text,privkey) print(message)flag{decrypt_256}