{"id":124,"date":"2021-06-14T13:35:52","date_gmt":"2021-06-14T05:35:52","guid":{"rendered":"http:\/\/101.34.19.194\/?p=124"},"modified":"2021-07-28T13:00:52","modified_gmt":"2021-07-28T05:00:52","slug":"%e6%96%87%e4%bb%b6%e5%8c%85%e5%90%ab","status":"publish","type":"post","link":"http:\/\/101.34.19.194\/?p=124","title":{"rendered":"\u6587\u4ef6\u5305\u542b"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u6587\u4ef6\u5305\u542b<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u4ec0\u4e48\u662f\u6587\u4ef6\u5305\u542b<\/h2>\n\n\n\n<p>\u6587\u4ef6\u5305\u542b\uff0c\u4e3a\u4e86\u66f4\u597d\u5730\u4f7f\u7528\u4ee3\u7801\u7684\u91cd\u7528\u6027\uff0c\u5f15\u5165\u4e86\u6587\u4ef6\u5305\u542b\u51fd\u6570\uff0c\u53ef\u4ee5\u901a\u8fc7\u6587\u4ef6\u5305\u542b\u51fd\u6570\u5c06\u6587\u4ef6\u5305\u542b\u8fdb\u6765\uff0c\u76f4\u63a5\u4f7f\u7528\u5305\u542b\u6587\u4ef6\u7684\u4ee3\u7801\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e\u6210\u56e0<\/h2>\n\n\n\n<p>\u5728\u5305\u542b\u6587\u4ef6\u65f6\u5019\uff0c\u4e3a\u4e86\u7075\u6d3b\u5305\u542b\u6587\u4ef6\uff0c\u5c06\u88ab\u5305\u542b\u6587\u4ef6\u8bbe\u7f6e\u4e3a\u53d8\u91cf\uff0c\u901a\u8fc7\u52a8\u6001\u53d8\u91cf\u6765\u5f15\u5165\u9700\u8981\u5305\u542b\u7684\u6587\u4ef6\u65f6\uff0c\u7528\u6237\u53ef\u4ee5\u5bf9\u53d8\u91cf\u7684\u503c\u53ef\u63a7\u800c\u670d\u52a1\u5668\u7aef\u672a\u5bf9\u53d8\u91cf\u503c\u8fdb\u884c\u5408\u7406\u5730\u6821\u9a8c\u6216\u8005\u6821\u9a8c\u88ab\u7ed5\u8fc7\uff0c\u8fd9\u6837\u5c31\u5bfc\u81f4\u4e86\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e\u3002\u901a\u5e38\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e\u51fa\u73b0\u5728PHP\u8bed\u8a00\u4e2d\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PHP\u6587\u4ef6\u5305\u542b\u7684\u51fd\u6570<\/h2>\n\n\n\n<ul><li>include( ) \u5f53\u4f7f\u7528\u8be5\u51fd\u6570\u5305\u542b\u6587\u4ef6\u65f6\uff0c\u53ea\u6709\u4ee3\u7801\u6267\u884c\u5230 include()\u51fd\u6570\u65f6\u624d\u5c06\u6587\u4ef6\u5305\u542b \u8fdb\u6765\uff0c\u53d1\u751f\u9519\u8bef\u65f6\u4e4b\u7ed9\u51fa\u4e00\u4e2a\u8b66\u544a\uff0c\u7ee7\u7eed\u5411\u4e0b\u6267\u884c\u3002<\/li><li>include_once( ) \u529f\u80fd\u4e0e Include()\u76f8\u540c\uff0c\u533a\u522b\u5728\u4e8e\u5f53\u91cd\u590d\u8c03\u7528\u540c\u4e00\u6587\u4ef6\u65f6\uff0c\u7a0b\u5e8f\u53ea\u8c03\u7528\u4e00\u6b21<\/li><li>require( ) require()\u4e0e include()\u7684\u533a\u522b\u5728\u4e8e require()\u6267\u884c\u5982\u679c\u53d1\u751f\u9519\u8bef\uff0c\u51fd\u6570\u4f1a\u8f93\u51fa \u9519\u8bef\u4fe1\u606f\uff0c\u5e76\u7ec8\u6b62\u811a\u672c\u7684\u8fd0\u884c\u3002<\/li><li>require_once( ) \u529f\u80fd\u4e0e require()\u76f8\u540c\uff0c\u533a\u522b\u5728\u4e8e\u5f53\u91cd\u590d\u8c03\u7528\u540c\u4e00\u6587\u4ef6\u65f6\uff0c\u7a0b\u5e8f\u53ea\u8c03\u7528\u4e00\u6b21\u3002<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u654f\u611f\u6587\u4ef6<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">Linux\/Unix\u7cfb\u7edf<br>\/etc\/passwd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/  \u8d26\u6237\u4fe1\u606f<br>\/etc\/shadow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/  \u8d26\u6237\u5bc6\u7801\u6587\u4ef6<br>\/usr\/local\/app\/apache2\/conf\/httpd.conf &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ &nbsp; Apache2\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6<br>\/usr\/local\/app\/apache2\/conf\/extra\/httpd-vhost.conf &nbsp;  \/\/ &nbsp; \u865a\u62df\u7f51\u7ad9\u914d\u7f6e<br>\/usr\/local\/app\/php5\/lib\/php.ini &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ &nbsp; PHP\u76f8\u5173\u914d\u7f6e<br>\/etc\/httpd\/conf\/httpd.conf &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  \/\/ &nbsp; Apache\u914d\u7f6e\u6587\u4ef6<br>\/etc\/my.conf &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ &nbsp; mysql \u914d\u7f6e\u6587\u4ef6<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e\u5206\u7c7b<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u672c\u5730\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e<\/h3>\n\n\n\n<p>\u672c\u5730\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\u5f53\u5305\u542b\u7684\u6587\u4ef6\u5728\u670d\u52a1\u5668\u672c\u5730\u65f6\uff0c\u5c31\u5f62\u6210\u4e86\u672c\u5730\u6587\u4ef6\u5305\u542b\u3002<\/p><\/blockquote>\n\n\n\n<p>\u6bd4\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php<br> &nbsp;  $file = $_GET&#91;'file'];<br> &nbsp;  include($file);<br> &nbsp;  .....<\/code><\/pre>\n\n\n\n<p>get\u4e00\u4e2a\u53c2\u6570<code>file<\/code>\uff0c\u6765\u63a7\u5236\u5305\u542b\u7684$file\u7684\u503c \u5047\u5982\u6709\u4e00\u4e2afile.txt<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php<br>phpinfo();<br>?&gt;<\/code><\/pre>\n\n\n\n<p><img decoding=\"async\" alt=\"img\" src=\"https:\/\/img-blog.csdnimg.cn\/20210127135908416.png#pic_center\"> \u5982\u679c\u9650\u5236\u5305\u542b\u6587\u4ef6\u7684\u540e\u7f00\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php<br> &nbsp;  $file = $_GET&#91;'file'] . '.php';<br> &nbsp;  echo $file;<br> &nbsp;  include($file);<\/code><\/pre>\n\n\n\n<p>\u5c31\u65e0\u6cd5\u627e\u5230\u8981\u5305\u542b\u7684\u6587\u4ef6 <img decoding=\"async\" alt=\"img\" src=\"https:\/\/img-blog.csdnimg.cn\/20210127140119945.png#pic_center\"> \u6b64\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>%00<\/code>\u622a\u65ad\uff0c\u4e0d\u8fc7\u9700\u8981\u6709\u524d\u63d0\u6761\u4ef6\uff1a 1). PHP\u7248\u672c &lt; 5.3 (\u4e0d\u5305\u62ec5.3) ; 2). PHPmagic_quotes_gpc = <code>off<\/code>; 3).PHP\u5bf9\u6240\u63a5\u6536\u7684\u53c2\u6570\uff0c\u5982\u4ee5\u4e0a\u4ee3\u7801\u7684<code>$_GET['file']<\/code>\u672a\u4f7f\u7528<code>addslashes<\/code>\u51fd\u6570<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8fdc\u7a0b\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e<\/h3>\n\n\n\n<p>\u8fdc\u7a0b\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\u5f53\u5305\u542b\u7684\u6587\u4ef6\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u65f6\uff0c\u5c31\u5f62\u6210\u4e86\u8fdc\u7a0b\u6587\u4ef6\u5305\u542b\u3002<\/p><\/blockquote>\n\n\n\n<p>\u8fdc\u7a0b\u6587\u4ef6\u5305\u542b\u7684\u6ce8\u610f\u70b9\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>1.\u9700\u8981php.ini\u4e2d<code>allow_url_include = on<\/code>\u4ee5\u53ca<code>allow_url_fopen=on<\/code><\/p><\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>2.\u6240\u5305\u542b\u8fdc\u7a0b\u670d\u52a1\u5668\u7684\u6587\u4ef6\u540e\u7f00\u4e0d\u80fd\u4e0e\u76ee\u6807\u670d\u52a1\u5668\u8bed\u8a00\u76f8\u540c\u3002(\u6bd4\u5982\u76ee\u6807\u670d\u52a1\u5668\u662fphp\u811a\u672c\u8bed\u8a00\u89e3\u6790\u7684\uff0c\u90a3\u4e48\u5305\u542b\u7684\u8fdc\u7a0b\u670d\u52a1\u5668\u6587\u4ef6\u540e\u7f00\u4e0d\u80fd\u662f<code>php<\/code>)<\/p><\/blockquote>\n\n\n\n<p>\u4e3b\u8981\u89e3\u91ca\u4e0b\u7b2c2\u70b9: \u6bd4\u5982\u8fdc\u7a0b\u670d\u52a1\u5668\u6587\u4ef6<code>yuancheng.php<\/code>\uff0c\u5185\u5bb9\u4e3a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php<br>phpinfo();<br>?&gt;<\/code><\/pre>\n\n\n\n<p><img decoding=\"async\" alt=\"\u8fdc\u7a0b\u670d\u52a1\u5668\" src=\"https:\/\/img-blog.csdnimg.cn\/2021012714092498.png#pic_center\"> \u518d\u6765\u770b\u4e0b\u76ee\u6807\u670d\u52a1\u5668\u7684\u4fe1\u606f <img decoding=\"async\" alt=\"\u76ee\u6807\u670d\u52a1\u5668\" src=\"https:\/\/img-blog.csdnimg.cn\/20210127140958202.png#pic_center\"> \u6267\u884c\u8fdc\u7a0b\u5305\u542b\uff1a <img decoding=\"async\" alt=\"\u6267\u884c\uff0c\u663e\u793a\u4e3a\u8fdc\u7a0b\u670d\u52a1\u5668\u7ed3\u679c\" src=\"https:\/\/img-blog.csdnimg.cn\/20210127141028168.png#pic_center\"> \u539f\u56e0\uff1a\u56e0\u4e3a\u76ee\u6807\u670d\u52a1\u5668\u5305\u542b\u7684\u4ee3\u7801\u5e76\u4e0d\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php phpinfo();?&gt;<\/code><\/pre>\n\n\n\n<p>\u800c\u662f\u8fdc\u7a0b\u670d\u52a1\u5668\u6267\u884c\u5b8c\u8fd9\u6bb5\u4ee3\u7801\u7684\u6e90\u4ee3\u7801 <img decoding=\"async\" alt=\"\u8fdc\u7a0b\u670d\u52a1\u5668\" src=\"https:\/\/img-blog.csdnimg.cn\/2021012714124674.png#pic_center\"> \u56e0\u6b64\uff0c\u6b63\u786e\u8fdc\u7a0b\u5305\u542b\u6587\u4ef6\u6f0f\u6d1e\u5229\u7528\u5982\u4e0b\uff1a \u9996\u5148\u786e\u4fdd\u914d\u7f6e\u6587\u4ef6<code>allow_url_fopen = On<\/code>\u4ee5\u53ca<code>allow_url_include = On<\/code><\/p>\n\n\n\n<p>\u5176\u6b21\uff0c\u4fee\u6539\u6587\u4ef6\u540e\u7f00\uff0c\u53ea\u8981\u4e0d\u662fphp\u5c31\u884c\uff0c\u6bd4\u5982\u540e\u7f00\u4e3a.txt\uff0c\u7136\u540e\u518d\u6765\u5305\u542b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img-blog.csdnimg.cn\/2021012714141895.png#pic_center'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img-blog.csdnimg.cn\/2021012714141895.png#pic_center\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u6210\u529f\"\/><\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e\u4e4b\u4f2a\u534f\u8bae<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>1.data:text\/plain \u6216 data:text\/plain;base64 2.php:\/\/input 3.php:\/\/filter 4.file:\/\/ 5.zip:\/\/<\/p><\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">data:text\/plain<\/h3>\n\n\n\n<p>\u76f4\u63a5\u5728\u5bf9\u5e94URL\u53c2\u6570\u5185\u8f93\u51fa\uff1a<code>data:text\/plain,<\/code>\u9700\u8981\u6267\u884c\u7684php\u4ee3\u7801<\/p>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img-blog.csdnimg.cn\/20210127142544885.png#pic_center'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img-blog.csdnimg.cn\/20210127142544885.png#pic_center\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"img\"\/><\/div><\/figure>\n\n\n\n<p>\u5982\u679c\u8fc7\u6ee4\u4e86php\uff0c\u53ef\u4ee5\u7ed3\u5408base64\u7ed5\u8fc7<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>data:text\/plain;base64,PD9waHAgc3lzdGVtKCJubCBmbGEqIik7Pz4=<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">php:\/\/input<\/h3>\n\n\n\n<p><code>php:\/\/input<\/code> \u53ef\u4ee5\u8bbf\u95ee\u8bf7\u6c42\u7684\u539f\u59cb\u6570\u636e\u7684\u53ea\u8bfb\u6d41, \u5c06post\u8bf7\u6c42\u4e2d\u7684\u6570\u636e\u4f5c\u4e3aPHP\u4ee3\u7801\u6267\u884c<\/p>\n\n\n\n<p>post\u5185\u5bb9\u53ef\u4ee5\u76f4\u63a5\u5199shell<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php fputs(fopen('info.php','w'),'&lt;?php phpinfo();?&gt;')?&gt;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/image.3001.net\/images\/20200527\/15905405689304.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/image.3001.net\/images\/20200527\/15905405689304.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"img\"\/><\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">php:\/\/filter<\/h3>\n\n\n\n<p><code>php:\/\/filter<\/code> \u8be5\u4f2a\u534f\u8bae\u53ef\u4ee5\u8bfb\u53d6php\u6587\u4ef6\u4ee3\u7801\u4ee5base64\u7f16\u7801\u8f93\u51fa\uff0c\u6bd4\u5982\u8bf4\u6211\u4eec\u60f3\u8bfb\u53d6\u4e00\u4e2aphp\u6587\u4ef6\u4f46\u662f\u4e0d\u60f3\u8ba9\u5b83\u6b63\u5e38php\u6267\u884c\u4ee3\u7801\u540e\u7684\u7ed3\u679c\uff0c\u6211\u4eec\u60f3\u8981\u8fd9\u4e2aphp\u6587\u4ef6\u7684\u4ee3\u7801\u7684\u65f6\u5019\u5c31\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2a\u4f2a\u534f\u8bae\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='http:\/\/101.34.19.194\/wp-content\/uploads\/2021\/06\/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20210630192515.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"http:\/\/101.34.19.194\/wp-content\/uploads\/2021\/06\/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20210630192515.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"img\"\/><\/div><\/figure>\n\n\n\n<p>1\u3001\u662f\u683c\u5f0f 2\u3001\u662f\u53ef\u9009\u53c2\u6570\uff0c\u6709read\u548cwrite\uff0c\u5b57\u9762\u610f\u601d\u5c31\u662f\u8bfb\u548c\u5199 3\u3001\u662f\u8fc7\u6ee4\u5668\u3002\u4e3b\u8981\u6709\u56db\u79cd\uff1a\u5b57\u7b26\u4e32\u8fc7\u6ee4\u5668\uff0c\u8f6c\u6362\u8fc7\u6ee4\u5668\uff0c\u538b\u7f29\u8fc7\u6ee4\u5668\uff0c\u52a0\u5bc6\u8fc7\u6ee4\u5668\u3002filter\u91cc\u53ef\u4ee5\u7528\u4e00\u6216\u591a\u4e2a\u8fc7\u6ee4\u5668\uff08\u4e2d\u95f4\u7528|\u9694\u5f00\uff09\uff0c\u8fd9\u4e5f\u4e3a\u89e3\u9898\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\uff0c\u7075\u6d3b\u8fd0\u7528\u8fc7\u6ee4\u5668\u662f\u89e3\u9898\u7684\u5173\u952e\u3002\u8fd9\u91cc\u7684\u8fc7\u6ee4\u5668\u662f\u628a\u6587\u4ef6flag.php\u91cc\u7684\u4ee3\u7801\u8f6c\u6362\uff08convert\uff09\u4e3abase64\u7f16\u7801\uff08encode\uff09 4\u3001\u662f\u5fc5\u9009\u53c2\u6570\uff0c\u540e\u9762\u5199\u4f60\u8981\u5904\u7406\u7684\u6587\u4ef6\u540d\u8bfb\u53d6\u6e90\u7801\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>?file=php:\/\/filter\/read=convert.base64-encode\/resource=flag.php \/\/\u8bfb\u53d6\u6e90\u7801\n?file=php:\/\/filter\/read=string.toupper\/resource=flag.php \/\/\u5927\u5199\u8f6c\u6362<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">file:\/\/<\/h3>\n\n\n\n<p><code>file:\/\/<\/code> \u7528\u4e8e\u8bbf\u95ee\u672c\u5730\u6587\u4ef6\u7cfb\u7edf\uff0c\u4e14\u4e0d\u53d7allow_url_fopen\u4e0eallow_url_include\u7684\u5f71\u54cd\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\u4f7f\u7528\u65b9\u6cd5\uff1afile:\/\/\u6587\u4ef6\u7edd\u5bf9\u8def\u5f84 file:\/\/C:\/Windows\/system.ini<\/p><\/blockquote>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img-blog.csdnimg.cn\/20210127143234514.png#pic_center'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img-blog.csdnimg.cn\/20210127143234514.png#pic_center\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"img\"\/><\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">zip:\/\/<\/h3>\n\n\n\n<p><code>zip:\/\/<\/code>\u53ef\u4ee5\u8bbf\u95ee\u538b\u7f29\u6587\u4ef6\u4e2d\u7684\u6587\u4ef6\u3002\u4f46\u662f\u9700\u8981\u7edd\u5bf9\u8def\u5f84\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\u4f7f\u7528\u65b9\u6cd5\uff1a zip:\/\/[\u538b\u7f29\u5305\u7edd\u5bf9\u8def\u5f84]%23(#\u548curl\u89c4\u5219\u51b2\u7a81\uff0c\u6240\u4ee5\u7528%23\u4ee3\u66ff)[\u538b\u7f29\u6587\u4ef6\u5185\u7684\u6587\u4ef6\u540d]<\/p><\/blockquote>\n\n\n\n<p>\u5728\u672c\u5730\u521b\u5efa\u4e00\u4e2a\u6587\u4ef62.php\uff0c\u5e76\u4e14\u538b\u7f29\u62102.zip\u538b\u7f29\u5305\uff0c\u7136\u540e\u5305\u542b\u538b\u7f29\u5305\u91cc\u9762\u7684\u6587\u4ef6\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img-blog.csdnimg.cn\/20210127143444372.png#pic_center'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img-blog.csdnimg.cn\/20210127143444372.png#pic_center\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"img\"\/><\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u65e5\u5fd7\u6587\u4ef6include<\/h2>\n\n\n\n<ul><li>\u539f\u7406:\u5bf9\u7f51\u7ad9\u8fdb\u884c\u8bbf\u95ee\u65f6,\u65e5\u5fd7\u6587\u4ef6\u4f1a\u8bb0\u5f55\u76f8\u5173\u4fe1\u606f(\u8bf7\u6c42\u5934\u4e2d\u7684\u4fe1\u606f)<\/li><li>\u524d\u63d0:\u77e5\u9053\u65e5\u5fd7\u6587\u4ef6\u6240\u5728,\u5e76\u80fd\u8fdb\u884c\u5305\u542b\uff08\u901a\u5e38\u5728 ?file=\/var\/log\/nginx\/access.log\uff09<img decoding=\"async\" alt=\"img\" src=\"https:\/\/i.loli.net\/2021\/06\/14\/6CLFMjnsWv9pJKQ.png\"><\/li><li>\u6b65\u9aa4:<ul><li>\u5148\u8bbf\u95ee\u7f51\u7ad9\u5728\u8bf7\u6c42\u5934\u4e2d\u5199\u5165\u4e00\u53e5\u8bdd(\u4e00\u822c\u5199\u5728user-agent\u4e2d)<\/li><li>\u7136\u540e\u901a\u8fc7post\u53bb\u5c1d\u8bd5\u6267\u884c<\/li><li>\u6267\u884c\u6210\u529f\u540e\u901a\u8fc7\u8681\u5251\u8fde\u63a5\u5f97\u5230shell<\/li><li>\u6216\u8005\u77e5\u9053flag\u5b58\u5728\u4f4d\u7f6e\u76f4\u63a5\u6267\u884csystem\u547d\u4ee4<\/li><\/ul><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u4ef6\u5305\u542b \u4ec0\u4e48\u662f\u6587\u4ef6\u5305\u542b \u6587\u4ef6\u5305\u542b\uff0c\u4e3a\u4e86\u66f4\u597d\u5730\u4f7f\u7528\u4ee3\u7801\u7684\u91cd\u7528\u6027\uff0c\u5f15\u5165\u4e86\u6587\u4ef6\u5305\u542b\u51fd\u6570\uff0c\u53ef\u4ee5\u901a\u8fc7\u6587\u4ef6\u5305\u542b\u51fd\u6570\u5c06\u6587\u4ef6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[11],"_links":{"self":[{"href":"http:\/\/101.34.19.194\/index.php?rest_route=\/wp\/v2\/posts\/124"}],"collection":[{"href":"http:\/\/101.34.19.194\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/101.34.19.194\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/101.34.19.194\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/101.34.19.194\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=124"}],"version-history":[{"count":8,"href":"http:\/\/101.34.19.194\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions"}],"predecessor-version":[{"id":251,"href":"http:\/\/101.34.19.194\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions\/251"}],"wp:attachment":[{"href":"http:\/\/101.34.19.194\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/101.34.19.194\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/101.34.19.194\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}