{"id":78818,"date":"2026-02-28T10:24:55","date_gmt":"2026-02-28T02:24:55","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/78818.html"},"modified":"2026-02-28T10:24:55","modified_gmt":"2026-02-28T02:24:55","slug":"ctf-buuoj-actf%e6%96%b0%e7%94%9f%e8%b5%9b2020crypto-rsa0-writeup","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/78818.html","title":{"rendered":"CTF BUUOJ [ACTF\u65b0\u751f\u8d5b2020]crypto-rsa0 Writeup"},"content":{"rendered":"<h2>CTF BUUOJ [ACTF\u65b0\u751f\u8d5b2020]crypto-rsa0 Writeup<\/h2>\n<h3>\u4e00\u3001\u9898\u76ee\u63cf\u8ff0<\/h3>\n<p>\u9898\u76ee\u6765\u6e90&#xff1a;ACTF\u65b0\u751f\u8d5b2020<br \/>\n\u9898\u76ee\u5206\u7c7b&#xff1a;Crypto<br \/>\n\u9898\u76ee\u7ed9\u4e86\u4e00\u4e2a\u538b\u7f29\u5305\u548c\u4e00\u4e2a\u63d0\u793a\u6587\u4ef6 hint.txt\u3002<br \/>\nhint.txt \u5185\u5bb9&#xff1a;<\/p>\n<p>\u600e\u4e48\u529e\u5462&#xff0c;\u51fa\u9898\u4eba\u4e5f\u592a\u574f\u4e86&#xff0c;\u7adf\u7136\u628a\u538b\u7f29\u5305\u7ed9\u4f2a\u52a0\u5bc6\u4e86&#xff01;<br \/>\noutput \u6587\u4ef6\u5185\u5bb9&#xff1a;<\/p>\n<p>9018588066434206377240277162476739271386240173088676526295315163990968347022922841299128274551482926490908399237153883494964743436193853978459947060210411<br \/>\n7547005673877738257835729760037765213340036696350766324229143613179932145122130685778504062410137043635958208805698698169847293520149572605026492751740223<br \/>\n50996206925961019415256003394743594106061473865032792073035954925875056079762626648452348856255575840166640519334862690063949316515750256545937498213476286637455803452890781264446030732369871044870359838568618176586206041055000297981733272816089806014400846392307742065559331874972274844992047849472203390350<\/p>\n<hr \/>\n<h3>\u4e8c\u3001\u89e3\u9898\u601d\u8def<\/h3>\n<h4>1. \u4f2a\u52a0\u5bc6\u538b\u7f29\u5305\u5904\u7406<\/h4>\n<p>\u9898\u76ee\u63d0\u793a\u201c\u538b\u7f29\u5305\u7ed9\u4f2a\u52a0\u5bc6\u4e86\u201d&#xff0c;\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u7ecf\u5178\u7684 Misc\/Crypto \u6df7\u5408\u8003\u70b9\u3002<br \/>\n\u6240\u8c13\u7684 ZIP \u4f2a\u52a0\u5bc6&#xff0c;\u662f\u6307\u538b\u7f29\u5305\u5b9e\u9645\u4e0a\u5e76\u6ca1\u6709\u52a0\u5bc6&#xff0c;\u4f46\u662f\u6587\u4ef6\u5934\u4e2d\u7684\u52a0\u5bc6\u6807\u5fd7\u4f4d\u88ab\u4fee\u6539\u6210\u4e86\u201c\u52a0\u5bc6\u201d\u72b6\u6001&#xff08;\u901a\u5e38\u662f\u5c06\u5168\u5c40\u65b9\u5f0f\u4f4d\u6807\u8bb0\u4fee\u6539\u4e3a 09 00&#xff09;&#xff0c;\u5bfc\u81f4\u89e3\u538b\u8f6f\u4ef6\u8bef\u4ee5\u4e3a\u9700\u8981\u5bc6\u7801\u3002<br \/>\n\u89e3\u51b3\u65b9\u6cd5&#xff1a;<br \/>\n\u4f7f\u7528\u5341\u516d\u8fdb\u5236\u7f16\u8f91\u5668&#xff08;\u5982 010 Editor\u3001WinHex&#xff09;\u6253\u5f00\u538b\u7f29\u5305&#xff0c;\u641c\u7d22\u5341\u516d\u8fdb\u5236\u6570\u636e 50 4B 03 04&#xff08;\u8fd9\u662f ZIP \u6587\u4ef6\u5934\u7684\u6807\u5fd7&#xff09;&#xff0c;\u5728\u5176\u540e\u7684\u6570\u636e\u4e2d\u627e\u5230 09 00&#xff0c;\u5c06\u5176\u4fee\u6539\u4e3a 00 00\u3002<br \/>\n\u4fee\u6539\u4fdd\u5b58\u540e&#xff0c;\u518d\u6b21\u6253\u5f00\u538b\u7f29\u5305\u5373\u53ef\u65e0\u5bc6\u7801\u89e3\u538b&#xff0c;\u5f97\u5230 rsa.py \u6e90\u7801\u6587\u4ef6\u548c output \u6587\u4ef6\u3002<\/p>\n<h4>2. \u4ee3\u7801\u5206\u6790<\/h4>\n<p>\u89e3\u538b\u540e\u5f97\u5230\u7684 rsa.py \u6838\u5fc3\u903b\u8f91\u901a\u5e38\u5982\u4e0b&#xff1a;<\/p>\n<p><span class=\"token keyword\">from<\/span> Cryptodome<span class=\"token punctuation\">.<\/span>Util<span class=\"token punctuation\">.<\/span>number <span class=\"token keyword\">import<\/span> <span class=\"token operator\">*<\/span><br \/>\n<span class=\"token keyword\">import<\/span> random<br \/>\nFLAG <span class=\"token operator\">&#061;<\/span> <span class=\"token comment\">#hidden, please solve it<\/span><br \/>\nflag <span class=\"token operator\">&#061;<\/span> <span class=\"token builtin\">int<\/span><span class=\"token punctuation\">.<\/span>from_bytes<span class=\"token punctuation\">(<\/span>FLAG<span class=\"token punctuation\">,<\/span> byteorder<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#039;big&#039;<\/span><span class=\"token punctuation\">)<\/span><br \/>\np <span class=\"token operator\">&#061;<\/span> getPrime<span class=\"token punctuation\">(<\/span><span class=\"token number\">512<\/span><span class=\"token punctuation\">)<\/span><br \/>\nq <span class=\"token operator\">&#061;<\/span> getPrime<span class=\"token punctuation\">(<\/span><span class=\"token number\">512<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>p<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>q<span class=\"token punctuation\">)<\/span><br \/>\nn <span class=\"token operator\">&#061;<\/span> p <span class=\"token operator\">*<\/span> q<br \/>\ne <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">65537<\/span><br \/>\nenc <span class=\"token operator\">&#061;<\/span> <span class=\"token builtin\">pow<\/span><span class=\"token punctuation\">(<\/span>flag<span class=\"token punctuation\">,<\/span> e<span class=\"token punctuation\">,<\/span> n<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>enc<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u7ed3\u5408 output \u6587\u4ef6\u7684\u5185\u5bb9&#xff0c;\u6211\u4eec\u53ef\u4ee5\u786e\u5b9a&#xff1a;<\/p>\n<ul>\n<li>\u7b2c\u4e00\u884c \u662f\u7d20\u6570 p<\/li>\n<li>\u7b2c\u4e8c\u884c \u662f\u7d20\u6570 q<\/li>\n<li>\u7b2c\u4e09\u884c \u662f\u5bc6\u6587 c<\/li>\n<li>\u516c\u94a5\u6307\u6570 e &#061; 65537&#xff08;RSA \u6807\u51c6\u9ed8\u8ba4\u503c&#xff09;<\/li>\n<\/ul>\n<h4>3. RSA \u89e3\u5bc6\u539f\u7406<\/h4>\n<p>\u8fd9\u662f\u4e00\u9053\u6807\u51c6\u7684 RSA \u89e3\u5bc6\u9898\u3002\u5df2\u77e5 <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">p,q,c,ep, q, c, e<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.625em;vertical-align: -0.1944em\"><\/span><span class=\"mord mathnormal\">p<\/span><span class=\"mpunct\">,<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0359em\">q<\/span><span class=\"mpunct\">,<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mord mathnormal\">c<\/span><span class=\"mpunct\">,<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mord mathnormal\">e<\/span><\/span><\/span><\/span><\/span>&#xff0c;\u6c42\u660e\u6587 <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">mm<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.4306em\"><\/span><span class=\"mord mathnormal\">m<\/span><\/span><\/span><\/span><\/span>\u3002<br \/>\n\u8ba1\u7b97\u6b65\u9aa4\u5982\u4e0b&#xff1a;<\/p>\n<li>\u8ba1\u7b97 <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">n&#061;p\u00d7qn &#061; p \\\\times q<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.4306em\"><\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.7778em;vertical-align: -0.1944em\"><\/span><span class=\"mord mathnormal\">p<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u00d7<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.625em;vertical-align: -0.1944em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0359em\">q<\/span><\/span><\/span><\/span><\/span><\/li>\n<li>\u8ba1\u7b97\u6b27\u62c9\u51fd\u6570 <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u03d5(n)&#061;(p\u22121)\u00d7(q\u22121)\\\\phi(n) &#061; (p-1) \\\\times (q-1)<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\">\u03d5<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mclose\">)<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">p<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u2212<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord\">1<\/span><span class=\"mclose\">)<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u00d7<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0359em\">q<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u2212<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord\">1<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/li>\n<li>\u8ba1\u7b97\u79c1\u94a5\u6307\u6570 <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">dd<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6944em\"><\/span><span class=\"mord mathnormal\">d<\/span><\/span><\/span><\/span><\/span>&#xff0c;\u6ee1\u8db3 <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">e\u00d7d\u22611(mod\u03d5(n))e \\\\times d \\\\equiv 1 \\\\pmod{\\\\phi(n)}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6667em;vertical-align: -0.0833em\"><\/span><span class=\"mord mathnormal\">e<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u00d7<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.6944em\"><\/span><span class=\"mord mathnormal\">d<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">\u2261<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.6444em\"><\/span><span class=\"mord\">1<\/span><span class=\"mspace allowbreak\"><\/span><span class=\"mspace\" style=\"margin-right: 0.4444em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mopen\">(<\/span><span class=\"mord\"><span class=\"mord\"><span class=\"mord mathrm\">mod<\/span><\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.3333em\"><\/span><span class=\"mord mathnormal\">\u03d5<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mclose\">))<\/span><\/span><\/span><\/span><\/span><\/li>\n<li>\u8ba1\u7b97\u660e\u6587 <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">m&#061;cd(modn)m &#061; c^d \\\\pmod n<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.4306em\"><\/span><span class=\"mord mathnormal\">m<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.8491em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\">c<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8491em\"><span class=\"\" style=\"top: -3.063em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mathnormal mtight\">d<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mspace allowbreak\"><\/span><span class=\"mspace\" style=\"margin-right: 0.4444em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mopen\">(<\/span><span class=\"mord\"><span class=\"mord\"><span class=\"mord mathrm\">mod<\/span><\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.3333em\"><\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/li>\n<li>\u5c06\u5927\u6574\u6570 <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">mm<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.4306em\"><\/span><span class=\"mord mathnormal\">m<\/span><\/span><\/span><\/span><\/span> \u8f6c\u6362\u4e3a\u5b57\u8282\u4e32&#xff08;bytes&#xff09;&#xff0c;\u5373\u53ef\u5f97\u5230 flag\u3002<\/li>\n<hr \/>\n<h3>\u4e09\u3001\u89e3\u9898\u811a\u672c<\/h3>\n<p>\u6839\u636e\u4e0a\u8ff0\u539f\u7406&#xff0c;\u7f16\u5199 Python \u811a\u672c\u5982\u4e0b&#xff1a;<\/p>\n<p><span class=\"token keyword\">from<\/span> Crypto<span class=\"token punctuation\">.<\/span>Util<span class=\"token punctuation\">.<\/span>number <span class=\"token keyword\">import<\/span> long_to_bytes<br \/>\n<span class=\"token keyword\">import<\/span> gmpy2<br \/>\n<span class=\"token comment\"># \u4ece output \u6587\u4ef6\u4e2d\u63d0\u53d6\u7684\u6570\u636e<\/span><br \/>\np <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">9018588066434206377240277162476739271386240173088676526295315163990968347022922841299128274551482926490908399237153883494964743436193853978459947060210411<\/span><br \/>\nq <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">7547005673877738257835729760037765213340036696350766324229143613179932145122130685778504062410137043635958208805698698169847293520149572605026492751740223<\/span><br \/>\nc <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">50996206925961019415256003394743594106061473865032792073035954925875056079762626648452348856255575840166640519334862690063949316515750256545937498213476286637455803452890781264446030732369871044870359838568618176586206041055000297981733272816089806014400846392307742065559331874972274844992047849472203390350<\/span><br \/>\n<span class=\"token comment\"># \u516c\u94a5\u6307\u6570<\/span><br \/>\ne <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">65537<\/span><br \/>\n<span class=\"token comment\"># RSA \u8ba1\u7b97\u8fc7\u7a0b<\/span><br \/>\nn <span class=\"token operator\">&#061;<\/span> p <span class=\"token operator\">*<\/span> q<br \/>\nphi <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span>p <span class=\"token operator\">&#8211;<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">*<\/span> <span class=\"token punctuation\">(<\/span>q <span class=\"token operator\">&#8211;<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token comment\"># \u6c42\u6a21\u9006\u8ba1\u7b97\u79c1\u94a5 d<\/span><br \/>\nd <span class=\"token operator\">&#061;<\/span> gmpy2<span class=\"token punctuation\">.<\/span>invert<span class=\"token punctuation\">(<\/span>e<span class=\"token punctuation\">,<\/span> phi<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token comment\"># \u89e3\u5bc6\u5f97\u5230\u660e\u6587\u5927\u6574\u6570<\/span><br \/>\nm <span class=\"token operator\">&#061;<\/span> <span class=\"token builtin\">pow<\/span><span class=\"token punctuation\">(<\/span>c<span class=\"token punctuation\">,<\/span> <span class=\"token builtin\">int<\/span><span class=\"token punctuation\">(<\/span>d<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> n<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token comment\"># \u8f6c\u6362\u4e3a\u5b57\u8282\u4e32\u5e76\u6253\u5370<\/span><br \/>\nflag <span class=\"token operator\">&#061;<\/span> long_to_bytes<span class=\"token punctuation\">(<\/span>m<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>flag<span class=\"token punctuation\">.<\/span>decode<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>actf{n0w_y0u_see_RSA}<\/p>\n<hr \/>\n<h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<p>\u8fd9\u9053\u9898\u867d\u7136\u5f52\u7c7b\u4e3a Crypto&#xff0c;\u4f46\u5176\u5b9e\u8003\u5bdf\u4e86\u4e24\u4e2a\u77e5\u8bc6\u70b9&#xff1a;<\/p>\n<li>Misc \u65b9\u5411&#xff1a;ZIP \u4f2a\u52a0\u5bc6\u7684\u8bc6\u522b\u4e0e\u4fee\u590d\u3002\u9047\u5230\u63d0\u793a\u201c\u4f2a\u52a0\u5bc6\u201d\u6216\u6709\u5bc6\u7801\u7684\u538b\u7f29\u5305&#xff0c;\u7b2c\u4e00\u65f6\u95f4\u68c0\u67e5\u6587\u4ef6\u5934\u6807\u5fd7\u4f4d\u3002<\/li>\n<li>Crypto \u65b9\u5411&#xff1a;RSA \u57fa\u7840\u89e3\u5bc6\u3002\u53ea\u8981\u5df2\u77e5 <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">pp<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.625em;vertical-align: -0.1944em\"><\/span><span class=\"mord mathnormal\">p<\/span><\/span><\/span><\/span><\/span> \u548c <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">qq<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.625em;vertical-align: -0.1944em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0359em\">q<\/span><\/span><\/span><\/span><\/span>&#xff0c;RSA \u7684\u7834\u89e3\u5c31\u662f\u7b80\u5355\u7684\u6570\u5b66\u8ba1\u7b97\u3002\u638c\u63e1 pycryptodome \u548c gmpy2 \u5e93\u7684\u4f7f\u7528\u5bf9 CTF \u5bc6\u7801\u5b66\u89e3\u9898\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/li>\n<hr \/>\n<p>\u6700\u7ec8 Flag&#xff1a;<\/p>\n<p>flag{n0w_y0u_see_RSA}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CTF BUUOJ [ACTF\u65b0\u751f\u8d5b2020]crypto-rsa0 Writeup<br \/>\n\u4e00\u3001\u9898\u76ee\u63cf\u8ff0<br \/>\n\u9898\u76ee\u6765\u6e90&#xff1a;ACTF\u65b0\u751f\u8d5b2020<br \/>\n\u9898\u76ee\u5206\u7c7b&#xff1a;Crypto<br \/>\n\u9898\u76ee\u7ed9\u4e86\u4e00\u4e2a\u538b\u7f29\u5305\u548c\u4e00\u4e2a\u63d0\u793a\u6587\u4ef6 hint.txt\u3002<br \/>\nhint.txt \u5185\u5bb9&#xff1a;\u600e\u4e48\u529e\u5462&#xff0c;\u51fa\u9898\u4eba\u4e5f\u592a\u574f\u4e86&#xff0c;\u7adf\u7136\u628a\u538b\u7f29\u5305\u7ed9\u4f2a\u52a0\u5bc6\u4e86&#xff01;<br \/>\noutput \u6587\u4ef6\u5185\u5bb9&#xff1a;90185880664342063772402771624767392<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,1425,1482,427,122],"topic":[],"class_list":["post-78818","post","type-post","status-publish","format-standard","hentry","category-server","tag-python","tag-1425","tag-1482","tag-427","tag-122"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CTF BUUOJ [ACTF\u65b0\u751f\u8d5b2020]crypto-rsa0 Writeup - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/78818.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CTF BUUOJ [ACTF\u65b0\u751f\u8d5b2020]crypto-rsa0 Writeup - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"CTF BUUOJ [ACTF\u65b0\u751f\u8d5b2020]crypto-rsa0 Writeup \u4e00\u3001\u9898\u76ee\u63cf\u8ff0 \u9898\u76ee\u6765\u6e90&#xff1a;ACTF\u65b0\u751f\u8d5b2020 \u9898\u76ee\u5206\u7c7b&#xff1a;Crypto \u9898\u76ee\u7ed9\u4e86\u4e00\u4e2a\u538b\u7f29\u5305\u548c\u4e00\u4e2a\u63d0\u793a\u6587\u4ef6 hint.txt\u3002 hint.txt \u5185\u5bb9&#xff1a;\u600e\u4e48\u529e\u5462&#xff0c;\u51fa\u9898\u4eba\u4e5f\u592a\u574f\u4e86&#xff0c;\u7adf\u7136\u628a\u538b\u7f29\u5305\u7ed9\u4f2a\u52a0\u5bc6\u4e86&#xff01; output \u6587\u4ef6\u5185\u5bb9&#xff1a;90185880664342063772402771624767392\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/78818.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-28T02:24:55+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/78818.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/78818.html\",\"name\":\"CTF BUUOJ [ACTF\u65b0\u751f\u8d5b2020]crypto-rsa0 Writeup - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-28T02:24:55+00:00\",\"dateModified\":\"2026-02-28T02:24:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/78818.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/78818.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/78818.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CTF BUUOJ [ACTF\u65b0\u751f\u8d5b2020]crypto-rsa0 Writeup\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CTF BUUOJ [ACTF\u65b0\u751f\u8d5b2020]crypto-rsa0 Writeup - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/78818.html","og_locale":"zh_CN","og_type":"article","og_title":"CTF BUUOJ [ACTF\u65b0\u751f\u8d5b2020]crypto-rsa0 Writeup - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"CTF BUUOJ [ACTF\u65b0\u751f\u8d5b2020]crypto-rsa0 Writeup \u4e00\u3001\u9898\u76ee\u63cf\u8ff0 \u9898\u76ee\u6765\u6e90&#xff1a;ACTF\u65b0\u751f\u8d5b2020 \u9898\u76ee\u5206\u7c7b&#xff1a;Crypto \u9898\u76ee\u7ed9\u4e86\u4e00\u4e2a\u538b\u7f29\u5305\u548c\u4e00\u4e2a\u63d0\u793a\u6587\u4ef6 hint.txt\u3002 hint.txt \u5185\u5bb9&#xff1a;\u600e\u4e48\u529e\u5462&#xff0c;\u51fa\u9898\u4eba\u4e5f\u592a\u574f\u4e86&#xff0c;\u7adf\u7136\u628a\u538b\u7f29\u5305\u7ed9\u4f2a\u52a0\u5bc6\u4e86&#xff01; output \u6587\u4ef6\u5185\u5bb9&#xff1a;90185880664342063772402771624767392","og_url":"https:\/\/www.wsisp.com\/helps\/78818.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-28T02:24:55+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/78818.html","url":"https:\/\/www.wsisp.com\/helps\/78818.html","name":"CTF BUUOJ [ACTF\u65b0\u751f\u8d5b2020]crypto-rsa0 Writeup - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-28T02:24:55+00:00","dateModified":"2026-02-28T02:24:55+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/78818.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/78818.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/78818.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"CTF BUUOJ [ACTF\u65b0\u751f\u8d5b2020]crypto-rsa0 Writeup"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/78818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=78818"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/78818\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=78818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=78818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=78818"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=78818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}