{"id":89371,"date":"2026-08-02T22:17:07","date_gmt":"2026-08-02T14:17:07","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/89371.html"},"modified":"2026-08-02T22:17:07","modified_gmt":"2026-08-02T14:17:07","slug":"ctfshow-web%e8%90%8c%e6%96%b011-17%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/89371.html","title":{"rendered":"CTFSHOW-WEB(\u840c\u65b011-17\uff09"},"content":{"rendered":"<h2>web11<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"296\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141704-6a6f516085adc.png\" width=\"672\" \/><\/p>\n<p>1.\u8fd9\u4e2a\u7684\u73af\u5883\u6bd4\u4e4b\u524d\u591a\u8fc7\u6ee4\u4e86\u4e00\u4e2acat,\u9ed1\u540d\u5355\u53ea\u9650\u5236\u4e86\u547d\u4ee4\u6267\u884c\u51fd\u6570&#xff0c;\u6ca1\u6709\u9650\u5236 PHP \u539f\u751f\u6587\u4ef6\u8bfb\u53d6\u51fd\u6570&#xff0c;\u53ef\u4ee5\u7528readfile\u6765\u8bfb\u53d6\u6587\u4ef6&#xff0c;\u6216\u8005\u662fecho file_get_contents(&#039;config.php&#039;);<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"311\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141704-6a6f516096ff7.png\" width=\"1126\" \/><\/p>\n<h2>web12<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"351\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141704-6a6f5160bcb93.png\" width=\"800\" \/><\/p>\n<p>1.\u8fd9\u6b21\u8fc7\u6ee4\u66f4\u591a&#xff0c;\u5e76\u4e14\u8fd8\u8fc7\u6ee4\u4e86config&#xff0c;\u90a3\u4e48\u6211\u4eec\u8981\u91c7\u53d6\u5176\u4ed6\u5f62\u5f0f\u7684config\u7684\u5199\u6cd5&#xff0c;\u6bd4\u5982\u8bf4base64,config base64\u52a0\u5bc6\u4e3aY29uZmlnLnBocA&#061;&#061;&#xff0c;\u7136\u540e\u6211\u4eec\u7684\u8bfb\u53d6\u51fd\u6570\u6ca1\u6709\u88ab\u8fc7\u6ee4\u53ef\u4ee5\u7167\u5e38\u4f7f\u7528&#xff1a;?c&#061;readfile(base64_decode(&#034;Y29uZmlnLnBocA&#061;&#061;&#034;));<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"381\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141704-6a6f5160d7653.png\" width=\"1519\" \/><\/p>\n<p>2.\u5176\u5b9e\u8fd9\u4e2a\u4e5f\u53ef\u4ee5\u7528\u522b\u7684\u5f62\u5f0f&#xff0c;<\/p>\n<p>chr ASCII \u5b57\u7b26\u62fc\u63a5\u65b9\u6848&#xff1a;&#xff1f;c&#061;readfile(chr(99).chr(111).chr(110).chr(102).chr(105).chr(103).chr(103).chr(46).chr(112).chr(104).chr(112));<\/p>\n<p>\u5341\u516d\u8fdb\u5236\u5b57\u7b26\u4e32&#xff1a;?c&#061;echo file_get_contents(&#034;\\\\x63\\\\x6f\\\\x6e\\\\x66\\\\x69\\\\x67\\\\x2e\\\\x70\\\\x68\\\\x70&#034;);<\/p>\n<h2>web13<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"371\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141705-6a6f51610de0c.png\" width=\"892\" \/><\/p>\n<p>1.\u8fd9\u4e2a\u9898\u6bd4\u4e0a\u4e00\u4e2a\u591a\u8fc7\u6ee4\u4e86\u4e00\u4e2a;&#xff0c;\u6240\u4ee5\u6211\u4eec\u8981PHP \u8bed\u53e5\u5b8c\u6574&#xff0c;\u5fc5\u987b\u7528?&gt;\u66ff\u4ee3\u5206\u53f7\u6536\u5c3e&#xff0c;\u7136\u540e\u8fd8\u591a\u8fc7\u6ee4\u4e86\u4e00\u4e2afile\u5143\u7d20&#xff0c;\u90a3\u6211\u4eec\u90a3\u4e2a\u65b9\u6cd5\u5c31\u4e0d\u884c\u4e86<\/p>\n<p>passthru&#xff1a;\u7cfb\u7edf\u547d\u4ee4\u6267\u884c\u51fd\u6570&#xff0c;\u8c03\u7528\u670d\u52a1\u5668 Linux \u547d\u4ee4cat\u3002cat\u662f\u8bfb\u53d6\u6587\u4ef6\u539f\u59cb\u6587\u672c&#xff0c;\u4e0d\u4f1a\u89e3\u6790 PHP&#xff0c;\u76f4\u63a5\u628a config.php \u5168\u90e8\u6e90\u7801\u539f\u6837\u8f93\u51fa\u5230\u6d4f\u89c8\u5668&#xff0c;\u6240\u4ee5\u80fd\u770b\u89c1 flag\u3002<\/p>\n<p>\/?c&#061;passthru(base64_decode(&#039;%27Y2F0IGNvbmZpZy5waHA&#061;%27&#039;))?&gt;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"248\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141705-6a6f5161297ba.png\" width=\"1335\" \/><\/p>\n<h2>web14<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"297\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141705-6a6f51614916e.png\" width=\"806\" \/><\/p>\n<p>1.\u8fd9\u4e2a\u65b0\u8fc7\u6ee4\u4e86\u4e00\u4e2a&#xff08;&#xff0c;\u6240\u4ee5\u4e0d\u80fd\u7528&#xff08;&#xff09;&#xff0c;echo\u3001include\u4e0d\u9700\u8981\u62ec\u53f7&#xff1b;\u4e8c\u8005\u5c5e\u4e8e PHP \u8bed\u8a00\u7ed3\u6784&#xff0c;\u5e76\u975e\u51fd\u6570\u3002<\/p>\n<p>\u7531\u4e8e\u9875\u9762\u4ee3\u7801\u5f00\u5934\u5df2\u7ecf\u63d0\u524d\u6267\u884c\u4e86include(config.php)&#xff0c;\u53d8\u91cf$flag\u5904\u4e8e\u5168\u5c40\u53ef\u8c03\u7528\u4f5c\u7528\u57df\u5185&#xff0c;\u56e0\u6b64\u6700\u7b80\u53ef\u7528\u8f7d\u8377\u5982\u4e0b&#xff1a;<\/p>\n<p>\u7eaf\u6587\u672c\u8f7d\u8377&#xff1a; ?c&#061;echo $flag?&gt;<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141705-6a6f516161025.png\" \/><\/p>\n<h2>web15<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"309\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141705-6a6f5161767a7.png\" width=\"937\" \/><\/p>\n<p>1.\u8fd9\u4e00\u4e2a\u548c\u4e0a\u4e00\u4e2a\u6709\u6240\u4e0d\u540c\u8fc7\u6ee4\u4e86?&gt;&#xff0c;\u5e76\u6ca1\u6709\u8fc7\u6ee4;\u5206\u53f7\u3002\u6240\u4ee5\u8fd9\u4e00\u9898\u53ea\u8981\u628a\u4e0a\u4e00\u9898\u7684\u7ed3\u675f\u7b26\u53f7\u6362\u4e3a&#xff1b;\u5373\u53ef<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"240\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141705-6a6f51618ed2c.png\" width=\"934\" \/><\/p>\n<h2>web16<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"383\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141705-6a6f5161a40e5.png\" width=\"710\" \/><\/p>\n<p>1.\u8fd9\u4e2a\u9898\u76ee\u7ed9\u4e86\u4e00\u4e2amd5\u503c&#xff0c;\u6211\u4eec\u5148\u8fdb\u884cmd5\u7206\u7834<\/p>\n<p>md5\u89e3\u5bc6\u5730\u5740&#xff1a;https:\/\/www.somd5.com\/<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"627\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141705-6a6f5161b4c68.png\" width=\"1251\" \/><\/p>\n<p>2.\u5728\u9898\u76ee\u4e2d\u7684\u4e0b\u9762\u7684\u4ee3\u7801\u7684\u610f\u601d\u662f&#xff1a;\u627e\u5230\u4e00\u4e32\u5b57\u7b26 X&#xff0c;\u6ee1\u8db3&#xff1a; md5(&#034;ctfshow&#034; . X) &#061; a6f57ae38a22448c2f07f3f95f49c84e \u4ee4$c&#061;X&#xff0c;\u5373\u53ef\u8fdb\u5165\u5224\u65ad\u8f93\u51fa flag\u3002\u6240\u4ee5\u6211\u4eec\u5c31\u627e\u5230\u4e86c&#061;36d\u7684<\/p>\n<p>\u00a0if(md5(&#034;ctfshow$c&#034;)&#061;&#061;&#061;&#034;a6f57ae38a22448c2f07f3f95f49c84e&#034;){ \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0echo\u00a0$flag;<\/p>\n<p>3.\u76f4\u63a5\u6784\u9020payload,\u5f97\u5230flag<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"217\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141706-6a6f516200e29.png\" width=\"823\" \/><\/p>\n<\/p>\n<h2>web17<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"left\" height=\"132\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141706-6a6f5162156d7.png\" width=\"995\" \/><\/p>\n<p><img decoding=\"async\" alt=\"\" class=\"left\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141706-6a6f516224a10.png\" \/><\/p>\n<p>1.\u6211\u4eec\u6700\u7ec8\u76ee\u7684&#xff1a;\u5fc5\u987b\u8ba9\u670d\u52a1\u5668\u8fd0\u884c PHP \u4ee3\u7801&#xff0c;\u6267\u884c\u547d\u4ee4\u627e\u51fa flag\u3002 \u73b0\u5728\u4e0d\u80fd\u76f4\u63a5\u4f20 php \u6587\u4ef6&#xff0c;\u90a3\u5c31\u5fc5\u987b\u627e\u4e00\u4e2a\u6ee1\u8db3\u4e24\u4e2a\u6761\u4ef6\u7684\u6587\u4ef6&#xff1a; \u2460 \u6587\u4ef6\u8def\u5f84\u4e0d\u5e26 php&#xff0c;\u53ef\u4ee5\u7ed5\u8fc7\u62e6\u622a&#xff1b; \u2461 \u8fd9\u4e2a\u6587\u4ef6\u6211\u4eec\u80fd\u81ea\u5df1\u5f80\u91cc\u5199\u5165 PHP \u4ee3\u7801&#xff1b; \u2462 \u7f51\u7ad9\u53ef\u4ee5\u7528 include \u8bfb\u53d6\u5b83\u3002\u6240\u4ee5\u9009\u62e9Nginx \u65e5\u5fd7<\/p>\n<p>2.\u9009\u62e9Nginx\u7684\u539f\u56e0<\/p>\n<\/p>\n<h6>\u8def\u5f84\u65e0 php&#xff0c;\u8f7b\u677e\u7ed5\u8fc7\u9ed1\u540d\u5355<\/h6>\n<p>Nginx \u9ed8\u8ba4\u8bbf\u95ee\u65e5\u5fd7\u8def\u5f84&#xff1a;\/var\/log\/nginx\/access.log \u6574\u6761\u8def\u5f84\u6ca1\u6709\u4efb\u4f55 php \u5b57\u6837&#xff0c;preg_match\u68c0\u6d4b\u4e0d\u5230&#xff0c;\u7f51\u7ad9\u5141\u8bb8 include \u8bfb\u53d6\u8fd9\u4e2a\u6587\u4ef6\u3002<\/p>\n<h6>\u6211\u4eec\u53ef\u4ee5\u968f\u4fbf\u5f80\u65e5\u5fd7\u91cc\u5199\u5b57<\/h6>\n<p>Nginx \u6709\u56fa\u5b9a\u673a\u5236&#xff1a;\u4efb\u4f55\u4eba\u8bbf\u95ee\u7f51\u7ad9&#xff0c;\u6d4f\u89c8\u5668 \/ \u5de5\u5177\u7684\u8bf7\u6c42\u5934User-Agent\u4f1a\u5b8c\u6574\u5199\u8fdb access.log \u65e5\u5fd7\u3002 User-Agent \u662f\u7528\u6765\u544a\u8bc9\u670d\u52a1\u5668\u4f60\u7528\u7684\u4ec0\u4e48\u6d4f\u89c8\u5668&#xff0c;\u8fd9\u4e2a\u5185\u5bb9\u6211\u4eec\u5b8c\u5168\u81ea\u5b9a\u4e49\u3002 \u4f60\u7528 curl \u53ef\u4ee5\u624b\u52a8\u628a User-Agent \u6539\u6210 &lt;?php system(&#034;cat *&#034;);?&gt;\u3002 \u4f60\u4e00\u53d1\u8bf7\u6c42&#xff0c;\u8fd9\u6bb5 PHP \u4ee3\u7801\u81ea\u52a8\u88ab\u670d\u52a1\u5668\u5199\u5230\u65e5\u5fd7\u91cc&#xff0c;\u5168\u7a0b\u4e0d\u7528\u4e0a\u4f20\u6587\u4ef6\u3002<\/p>\n<h6>\u65e5\u5fd7\u80fd\u88ab include \u89e3\u6790\u6267\u884c<\/h6>\n<p>include \u6709\u7279\u6b8a\u89c4\u5219&#xff1a;<\/p>\n<ul>\n<li>\u6253\u5f00\u7eaf txt\u3001\u65e5\u5fd7\u8fd9\u7c7b\u666e\u901a\u6587\u4ef6&#xff1a;\u53ea\u539f\u6837\u5c55\u793a\u6587\u5b57&#xff1b;<\/li>\n<li>\u5982\u679c\u6587\u4ef6\u91cc\u5b58\u5728&lt;?php \u4ee3\u7801 ?&gt;&#xff0c;PHP \u5f15\u64ce\u4f1a\u8fd0\u884c\u4ee3\u7801&#xff0c;\u518d\u8f93\u51fa\u7ed3\u679c\u3002<\/li>\n<\/ul>\n<p>\u65e5\u5fd7\u88ab\u6211\u4eec\u585e\u8fdb\u4e86 PHP \u6807\u7b7e&#xff0c;\u8bfb\u53d6\u65e5\u5fd7\u5c31\u7b49\u4e8e\u8fd0\u884c\u4ee3\u7801\u3002<\/p>\n<p>3.\u7528 curl \u5de5\u5177\u8bbf\u95ee\u7f51\u7ad9&#xff0c;\u5f3a\u884c\u544a\u8bc9\u670d\u52a1\u5668&#xff1a;\u6211\u7684\u6d4f\u89c8\u5668\u6807\u8bc6\u662f\u4e00\u6bb5 PHP \u4ee3\u7801\u3002 \u670d\u52a1\u5668\u4f1a\u628a\u8fd9\u6bb5\u4ee3\u7801\u5199\u8fdb\u65e5\u5fd7\u3002\u4e4b\u540e\u8bfb\u53d6\u65e5\u5fd7&#xff0c;\u4ee3\u7801\u8fd0\u884c&#xff0c;\u81ea\u52a8\u904d\u5386\u7f51\u7ad9\u6240\u6709\u6587\u4ef6&#xff0c;\u7206\u51fa flag\u3002\u8fd9\u4e2a\u547d\u4ee4\u5176\u5b9e\u5728\u81ea\u5df1\u7ec8\u7aef\u8f93\u5165\u5c31\u884c\u3002<\/p>\n<p>curl -H &#034;User-Agent: &lt;?php system(\\\\&#034;cat *\\\\&#034;);?&gt;&#034; https:\/\/cd99e68e-35de-4ccc-b3d3-ed139ba5ccf5.challenge.ctf.show\/ <\/p>\n<p>4.\u6307\u4ee4\u8be6\u89e3&#xff1a;curl &#061; Windows \u7cfb\u7edf\u81ea\u5e26\u7684\u7f51\u7edc\u8bf7\u6c42\u5de5\u5177&#xff0c;\u4f5c\u7528&#xff1a;\u5411\u7f51\u5740\u53d1\u9001\u4e00\u6b21 HTTP \u8bbf\u95ee\u8bf7\u6c42\u3002<\/p>\n<h6>\u00a0-H<\/h6>\n<p>\u5168\u79f0 header&#xff0c;\u529f\u80fd&#xff1a;\u624b\u52a8\u81ea\u5b9a\u4e49 HTTP \u8bf7\u6c42\u5934\u3002 \u6b63\u5e38\u6d4f\u89c8\u5668\u8bbf\u95ee\u7f51\u7ad9\u4f1a\u81ea\u5e26\u5f88\u591a\u8bf7\u6c42\u5934&#xff08;\u6d4f\u89c8\u5668\u578b\u53f7\u3001UA\u3001Cookie \u7b49&#xff09;&#xff0c;-H\u5141\u8bb8\u6211\u4eec\u624b\u52a8\u65b0\u589e \/ \u4fee\u6539\u4efb\u610f\u8bf7\u6c42\u5934\u3002 \u672c\u6b21\u6211\u4eec\u4e13\u95e8\u4fee\u6539User-Agent\u8bf7\u6c42\u5934\u3002<\/p>\n<h6>User-Agent: &lt;?php system(\\\\&#034;cat *\\\\&#034;);?&gt;<\/h6>\n<p>\u8fd9\u662f\u6211\u4eec\u81ea\u5b9a\u4e49\u7684\u8bf7\u6c42\u5934\u5185\u5bb9&#xff0c;\u5206\u6210\u4e24\u5757&#xff1a;<\/p>\n<p>1&#xff09;User-Agent: \u7ea6\u5b9a\u540d\u79f0&#xff0c;\u4ee3\u8868\u6d4f\u89c8\u5668\u6807\u8bc6\u3002\u6b63\u5e38\u8fd9\u91cc\u662fChrome\/Edge\/\u706b\u72d0\u8fd9\u7c7b\u6d4f\u89c8\u5668\u4fe1\u606f&#xff1b;\u6211\u4eec\u5168\u90e8\u66ff\u6362\u6210\u6076\u610f PHP \u4ee3\u7801\u3002<\/p>\n<p>2&#xff09;&lt;?php system(\\\\&#034;cat *\\\\&#034;);?&gt; \u6838\u5fc3\u6267\u884c\u4ee3\u7801&#xff0c;\u5206\u5c42\u62c6\u89e3<\/p>\n<ul>\n<li>&lt;?php ?&gt;&#xff1a;PHP \u6807\u8bb0\u3002\u53ea\u8981 PHP \u8bfb\u5230\u8fd9\u5bf9\u6807\u7b7e&#xff0c;\u5c31\u4f1a\u628a\u4e2d\u95f4\u5185\u5bb9\u5f53\u6210\u7a0b\u5e8f\u6267\u884c&#xff0c;\u4e0d\u4f1a\u5f53\u6210\u666e\u901a\u6587\u5b57\u3002<\/li>\n<li>system()&#xff1a;PHP \u5185\u7f6e\u51fd\u6570&#xff0c;\u4f5c\u7528&#xff1a;\u8c03\u7528 Linux \u670d\u52a1\u5668\u539f\u751f\u7cfb\u7edf\u547d\u4ee4\u3002<\/li>\n<li>cat&#xff1a;Linux \u7ecf\u5178\u547d\u4ee4&#xff0c;\u529f\u80fd&#xff1a;\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\u3002<\/li>\n<li>*&#xff1a;\u901a\u914d\u7b26&#xff0c;\u4ee3\u8868\u300c\u5f53\u524d\u6587\u4ef6\u5939\u6240\u6709\u6587\u4ef6\u300d\u3002cat * &#061; \u8bfb\u53d6\u7f51\u7ad9\u6839\u76ee\u5f55\u5168\u90e8\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<h6>\u4e3a\u4ec0\u4e48\u8981\u52a0\u53cd\u659c\u6760 \\\\&#034;&#xff1f;<\/h6>\n<p>Windows CMD \u8bed\u6cd5\u786c\u6027\u8981\u6c42&#xff1a; \u5916\u5c42\u5df2\u7ecf\u7528\u53cc\u5f15\u53f7\u5305\u88f9\u6574\u4e2a UA \u5185\u5bb9&#xff1a;&#034;User-Agent: xxx&#034; \u5982\u679c\u4ee3\u7801\u5185\u90e8\u8fd8\u8981\u5199\u53cc\u5f15\u53f7 &#034;&#xff0c;CMD \u4f1a\u8bef\u8ba4\u4e3a\u5f15\u53f7\u63d0\u524d\u7ed3\u675f&#xff0c;\u547d\u4ee4\u76f4\u63a5\u5d29\u6389\u3002 \u5fc5\u987b\u7528 \\\\ \u8f6c\u4e49&#xff0c;\u5199\u6210 \\\\&#034;&#xff0c;\u544a\u8bc9 CMD&#xff1a;\u8fd9\u4e2a\u53cc\u5f15\u53f7\u662f\u4ee3\u7801\u91cc\u7684\u6587\u5b57&#xff0c;\u4e0d\u662f\u547d\u4ee4\u7ed3\u675f\u7b26\u3002<\/p>\n<p>\u5982\u679c\u5199\u6210\u9519\u8bef\u7248\u672c&#xff1a; &#034;User-Agent: &lt;?php system(&#034;cat *&#034;);?&gt;&#034; CMD \u8bfb\u5230system(&#034;\u8fd9\u91cc\u5c31\u5224\u5b9a\u5f15\u53f7\u95ed\u5408&#xff0c;\u6574\u6761\u547d\u4ee4\u76f4\u63a5\u62a5\u9519\u3002<\/p>\n<h6>\u672b\u5c3e\u7f51\u5740<\/h6>\n<p>\u6307\u5b9a\u8bf7\u6c42\u53d1\u9001\u5230\u8fd9\u53f0 CTF \u9776\u673a&#xff0c;\u4f60\u7684 UA \u4ee3\u7801\u4f1a\u968f\u7740\u8fd9\u6b21\u8bbf\u95ee\u4e00\u8d77\u53d1\u7ed9 Nginx \u670d\u52a1\u5668\u3002<\/p>\n<p>5.\u53d1\u9001\u4e4b\u540e\u670d\u52a1\u5668\u4f1a\u600e\u4e48\u6837<\/p>\n<ul>\n<li>\u670d\u52a1\u5668 Nginx \u6536\u5230\u4f60\u7684\u8bbf\u95ee\u8bf7\u6c42&#xff0c;\u5b8c\u6574\u8bb0\u5f55\u6240\u6709\u8bf7\u6c42\u4fe1\u606f\u5199\u5165\u65e5\u5fd7\u6587\u4ef6 \/var\/log\/nginx\/access.log&#xff0c;User-Agent \u539f\u6837\u5b58\u5165\u65e5\u5fd7&#xff1b;<\/li>\n<li>\u65e5\u5fd7\u6587\u4ef6\u73b0\u5728\u88ab\u5199\u5165&#xff1a;&lt;?php system(&#034;cat *&#034;);?&gt;&#xff1b;<\/li>\n<li>\u540e\u7eed\u4f60\u8bbf\u95ee ?c&#061;\/var\/log\/nginx\/access.log&#xff0c;PHP include \u8bfb\u53d6\u65e5\u5fd7&#xff0c;\u8bc6\u522b PHP \u6807\u7b7e&#xff0c;\u6267\u884ccat *&#xff1b;<\/li>\n<li>\u670d\u52a1\u5668\u5217\u51fa\u7f51\u7ad9\u5168\u90e8\u6587\u4ef6&#xff0c;flag \u88ab\u6253\u5370\u5728\u9875\u9762\u4e2d\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"286\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141706-6a6f516234759.png\" width=\"1462\" \/><\/p>\n<p>6.\u4e0b\u4e00\u6b65\u5728\u6d4f\u89c8\u5668\u8bbf\u95ee\u7684\u6307\u4ee4&#xff1a;<\/p>\n<p>https:\/\/cd99e68e-35de-4ccc-b3d3-ed139ba5ccf5.challenge.ctf.show\/?c&#061;\/var\/log\/nginx\/access.log <\/p>\n<p>\u4f5c\u7528&#xff1a;\u53bb\u8bfb\u53d6 Nginx \u65e5\u5fd7\u8fd9\u4e2a\u6587\u4ef6\u3002 \u7f51\u7ad9\u6253\u5f00\u65e5\u5fd7&#xff0c;\u53d1\u73b0\u91cc\u9762\u85cf\u4e86 PHP \u4ee3\u7801&#xff0c;\u81ea\u52a8\u8fd0\u884c\u4ee3\u7801&#xff0c;\u628a\u7f51\u7ad9\u6240\u6709\u6587\u4ef6\u5168\u90e8\u8bfb\u51fa\u6765\u5c55\u793a\u3002<\/p>\n<p>\/var\/log\/nginx\/access.log&#xff1a;\u8d4b\u503c\u5185\u5bb9&#xff0c;Nginx \u8bbf\u95ee\u65e5\u5fd7\u5728 Linux \u7cfb\u7edf\u7684\u7edd\u5bf9\u8def\u5f84\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"523\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141706-6a6f51625c009.png\" width=\"1912\" \/><\/p>\n<p>7.\u7136\u540e\u518d\u8fd9\u4e2a\u9875\u9762\u68c0\u67e5\u6e90\u4ee3\u7801&#xff0c;\u5373\u53ef\u5f97\u5230flag<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"321\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141706-6a6f5162c19de.png\" width=\"569\" \/><\/p>\n<h2><\/h2><\/p>\n","protected":false},"excerpt":{"rendered":"<p>web11 1.\u8fd9\u4e2a\u7684\u73af\u5883\u6bd4\u4e4b\u524d\u591a\u8fc7\u6ee4\u4e86\u4e00\u4e2acat,\u9ed1\u540d\u5355\u53ea\u9650\u5236\u4e86\u547d\u4ee4\u6267\u884c\u51fd\u6570&#xff0c;\u6ca1\u6709\u9650\u5236 PHP \u539f\u751f\u6587\u4ef6\u8bfb\u53d6\u51fd\u6570&#xff0c;\u53ef\u4ee5\u7528readfile\u6765\u8bfb\u53d6\u6587\u4ef6&#xff0c;\u6216\u8005\u662fecho file_get_contents(config.php); web12 1.\u8fd9\u6b21\u8fc7\u6ee4\u66f4\u591a&#xff0c;\u5e76\u4e14\u8fd8\u8fc7\u6ee4\u4e86config&#xff0c;\u90a3\u4e48\u6211\u4eec\u8981\u91c7\u53d6\u5176\u4ed6\u5f62\u5f0f\u7684config\u7684\u5199\u6cd5&#xff0c;\u6bd4\u5982\u8bf4base64,config base64\u52a0\u5bc6\u4e3aY29uZmln<\/p>\n","protected":false},"author":2,"featured_media":89353,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[594,305,124,122],"topic":[],"class_list":["post-89371","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-web","tag-305","tag-124","tag-122"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CTFSHOW-WEB(\u840c\u65b011-17\uff09 - \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\/89371.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CTFSHOW-WEB(\u840c\u65b011-17\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"web11 1.\u8fd9\u4e2a\u7684\u73af\u5883\u6bd4\u4e4b\u524d\u591a\u8fc7\u6ee4\u4e86\u4e00\u4e2acat,\u9ed1\u540d\u5355\u53ea\u9650\u5236\u4e86\u547d\u4ee4\u6267\u884c\u51fd\u6570&#xff0c;\u6ca1\u6709\u9650\u5236 PHP \u539f\u751f\u6587\u4ef6\u8bfb\u53d6\u51fd\u6570&#xff0c;\u53ef\u4ee5\u7528readfile\u6765\u8bfb\u53d6\u6587\u4ef6&#xff0c;\u6216\u8005\u662fecho file_get_contents(config.php); web12 1.\u8fd9\u6b21\u8fc7\u6ee4\u66f4\u591a&#xff0c;\u5e76\u4e14\u8fd8\u8fc7\u6ee4\u4e86config&#xff0c;\u90a3\u4e48\u6211\u4eec\u8981\u91c7\u53d6\u5176\u4ed6\u5f62\u5f0f\u7684config\u7684\u5199\u6cd5&#xff0c;\u6bd4\u5982\u8bf4base64,config base64\u52a0\u5bc6\u4e3aY29uZmln\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/89371.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-02T14:17:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141704-6a6f516085adc.png\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89371.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/89371.html\",\"name\":\"CTFSHOW-WEB(\u840c\u65b011-17\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-02T14:17:07+00:00\",\"dateModified\":\"2026-08-02T14:17:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/89371.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/89371.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89371.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CTFSHOW-WEB(\u840c\u65b011-17\uff09\"}]},{\"@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":"CTFSHOW-WEB(\u840c\u65b011-17\uff09 - \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\/89371.html","og_locale":"zh_CN","og_type":"article","og_title":"CTFSHOW-WEB(\u840c\u65b011-17\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"web11 1.\u8fd9\u4e2a\u7684\u73af\u5883\u6bd4\u4e4b\u524d\u591a\u8fc7\u6ee4\u4e86\u4e00\u4e2acat,\u9ed1\u540d\u5355\u53ea\u9650\u5236\u4e86\u547d\u4ee4\u6267\u884c\u51fd\u6570&#xff0c;\u6ca1\u6709\u9650\u5236 PHP \u539f\u751f\u6587\u4ef6\u8bfb\u53d6\u51fd\u6570&#xff0c;\u53ef\u4ee5\u7528readfile\u6765\u8bfb\u53d6\u6587\u4ef6&#xff0c;\u6216\u8005\u662fecho file_get_contents(config.php); web12 1.\u8fd9\u6b21\u8fc7\u6ee4\u66f4\u591a&#xff0c;\u5e76\u4e14\u8fd8\u8fc7\u6ee4\u4e86config&#xff0c;\u90a3\u4e48\u6211\u4eec\u8981\u91c7\u53d6\u5176\u4ed6\u5f62\u5f0f\u7684config\u7684\u5199\u6cd5&#xff0c;\u6bd4\u5982\u8bf4base64,config base64\u52a0\u5bc6\u4e3aY29uZmln","og_url":"https:\/\/www.wsisp.com\/helps\/89371.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-02T14:17:07+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802141704-6a6f516085adc.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/89371.html","url":"https:\/\/www.wsisp.com\/helps\/89371.html","name":"CTFSHOW-WEB(\u840c\u65b011-17\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-02T14:17:07+00:00","dateModified":"2026-08-02T14:17:07+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/89371.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/89371.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/89371.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"CTFSHOW-WEB(\u840c\u65b011-17\uff09"}]},{"@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\/89371","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=89371"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89371\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/89353"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=89371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=89371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=89371"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=89371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}