{"id":39,"date":"2023-06-05T12:51:11","date_gmt":"2023-06-05T04:51:11","guid":{"rendered":"http:\/\/pro369.com\/php\/?p=39"},"modified":"2019-07-08T12:12:00","modified_gmt":"2019-07-08T12:12:00","slug":"%e6%9c%80%e7%9f%ad%e7%9a%84php%e5%be%ae%e7%b6%b2%e8%aa%8c%e7%a8%8b%e5%bc%8f%e4%bb%a3%e7%a2%bc","status":"publish","type":"post","link":"https:\/\/por.tw\/php\/%e6%9c%80%e7%9f%ad%e7%9a%84php%e5%be%ae%e7%b6%b2%e8%aa%8c%e7%a8%8b%e5%bc%8f%e4%bb%a3%e7%a2%bc\/","title":{"rendered":"\u6700\u77ed\u7684PHP\u5fae\u7db2\u8a8c\u7a0b\u5f0f\u4ee3\u78bc"},"content":{"rendered":"<p><font size=\"3\"><strong style=\"background-color: #ffff00\"><font size=\"4\">\u60a8\u77e5\u9053\u6700\u77ed\u7684PHP\u5fae\u7db2\u8a8c\u7a0b\u5f0f\u4ee3\u78bc\u5982\u4f55\u7de8\u5beb\u55ce\uff1f<\/font><\/strong><\/p>\n<p> \u6700\u77ed\u7684PHP\u5fae\u7db2\u8a8c\u7a0b\u5f0f\u3002<br \/> <font size=\"4\" color=\"#800080\"><strong><font color=\"#ff0000\">\u57fa\u672c\u9700\u6c42\u662f\uff1a<\/font><br \/> 1.\u7121\u4e82\u78bc(\u6700\u597dUTF-8)\u3002<br \/> 2.\u6709\u8f38\u5165\u6846\u53ef\u4ee5\u767c\u4f48\u65b0\u8a0a\u606f\u3002<br \/> 3.\u9001\u51fa\u5f8c\u99ac\u4e0a\u53ef\u4ee5\u770b\u5230\u65b0\u767c\u7684\u5167\u5bb9\u3002<br \/> 4.\u5fc5\u9808\u4f7f\u7528POST\u6a21\u5f0f\u9001\u51fa\u3002<br \/> 5.\u8a0a\u606f\u5f8c\u9762\u8981\u6709\u6642\u9593\u6a19\u793a\u3002<br \/> 6.\u4e0d\u80fd\u767c\u4f48\u4efb\u4f55HTML\u6a19\u7c64\u3002<\/strong><\/font><\/p>\n<p> &lt;?php<br \/> header(&quot;content-type:text\/html; charset=utf-8&quot;);<br \/> $a=@file_get_contents(l);<br \/> ($p=$_POST[s])&amp;&amp;file_put_contents(l,$a=&#39;&lt;hr&gt;&#39;.htmlspecialchars($p).date(&#39; Y-m-d H:i&#39;).$a);<br \/> echo &#39;&lt;form method=post&gt;&lt;input name=s&gt;&lt;\/form&gt;&#39;.$a;<br \/> ?&gt;<\/p>\n<p> <strong>\u904b\u884c\u6548\u679c\u5982\u5716\uff1a<\/p>\n<p> <\/strong><\/font><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/visdacom.com\/php\/wp-content\/uploads\/2012\/05\/1553844664.gif\"  width=\"248\" height=\"180\" \/><font size=\"3\"><\/p>\n<p> <font size=\"5\" color=\"#ff0000\"><strong>\u8a3b\u91cb\u4e00\u4e0b\uff1a<\/strong><\/font><\/p>\n<p> &lt;?php<br \/> header(&quot;content-type:text\/html; charset=utf-8&quot;); \/\/\u50b3\u9001\u5230utf-8\u8072\u660e<br \/> \/*<br \/> * \u5f9e\u540d\u53ebl\u7684\u6a94\u6848\u88e1\u9762\u8b80\u53d6\u8cc7\u6599\u3002<br \/> * php\u88e1\u9762\u7684\u5e38\u91cf\u5982\u679c\u6c92\u6709\u5148\u8072\u660e\uff0c\u90a3\u9ebc\u9810\u8a2d\u503c\u662f\u7b49\u65bc\u5e38\u91cf\u672c\u8eab\u7684\u90a3\u500b\u5b57\u4e32\u3002<br \/> * \u4e5f\u5c31\u662f\u8aaa\u6c92\u6709\u8072\u660e\u904e\u7684l==&quot;l&quot; , ABCD == &quot;ABCD&quot;<br \/> *\/<br \/> $a=@file_get_contents(l);<br \/> \/*<br \/> * a &amp;&amp; b; \u8c8c\u4f3c\u662fphp\u7279\u6709\u7684\u8a9e\u6cd5\u7d50\u69cb\u3002 \u5927\u6982\u610f\u601d\u662f \u5148\u57f7\u884ca\uff0c<br \/> * \u7136\u5f8c\u5224\u65b7a\u662f\u5426\u70batrue\uff0c\u5982\u679c\u662f\uff0c\u90a3\u9ebc\u7e7c\u7e8c\u57f7\u884cb<br \/> *<br \/> * ($p=$_POST[s]) \u662f\u5148\u628a$_POST[s]\u7684\u503c\u8ce6\u7d66$p\uff0c<br \/> * \u7136\u5f8c\u62ec\u865f\u7684\u503c\u70ba$p\u8f49\u63db\u70ba\u5e03\u723e\u578b\u3002\u4e5f\u5c31\u662f\u8aaa\uff0c\u53ea\u8981$p\u4e0d\u662f\u7a7a\u5b57\u4e32\uff0c<br \/> * \u6216\u662ffalse\uff0c\u6216\u662f0\uff0c\u6216\u662fnull\u3002\u5c31\u6703\u7e7c\u7e8c\u57f7\u884c\u5f8c\u9762\u7684\u8a9e\u53e5<br \/> *<br \/> * \u5f8c\u9762\u64cd\u4f5c\u662f\u628a\u525b\u525b\u8b80\u51fa\u4f86\u7684$a\u7684\u524d\u9762\u52a0\u4e0a\u65b0\u7684\u8cc7\u6599\uff0c\u7136\u5f8c\u5beb\u5165l\u6a94\u6848<br \/> *\/<br \/> ($p=$_POST[s])&amp;&amp;file_put_contents(l,$a=&#39;&lt;hr&gt;&#39;.htmlspecialchars($p).date(&#39; Y-m-d H:i&#39;).$a);<br \/> \/*<br \/> * \u986f\u793ahtml\u8a9e\u53e5\uff0c\u7528\u65bc\u69cb\u9020\u4e00\u500b\u53ef\u4ee5post\u9001\u51fa\u7684\u8f38\u5165\u6846\uff0c\u6c92\u6709\u9001\u51fa\u6309\u9215\uff0c\u76f4\u63a5\u6309\u63db\u884c\u9001\u51fa\u3002<br \/> * \u7531\u65bc\u9801\u9762\u662f\u7528utf-8\u7de8\u78bc\uff0c\u6240\u4ee5\u9001\u51fa\u7684\u8cc7\u6599\u4e5f\u662futf-8\u7de8\u78bc<br \/> *\/<br \/> echo &#39;&lt;form method=post&gt;&lt;input name=s&gt;&lt;\/form&gt;&#39;.$a;\/\/#\u8a3b\u91cb2<br \/> ?&gt;<\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u60a8\u77e5\u9053\u6700\u77ed\u7684PHP\u5fae\u7db2\u8a8c\u7a0b\u5f0f\u4ee3\u78bc\u5982\u4f55\u7de8\u5beb\u55ce\uff1f \u6700\u77ed\u7684PHP\u5fae\u7db2\u8a8c\u7a0b\u5f0f\u3002 \u57fa\u672c\u9700\u6c42\u662f\uff1a 1.\u7121\u4e82\u78bc(\u6700\u597dUTF- [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":399,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[22],"class_list":["post-39","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-php"],"_links":{"self":[{"href":"https:\/\/por.tw\/php\/wp-json\/wp\/v2\/posts\/39"}],"collection":[{"href":"https:\/\/por.tw\/php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/por.tw\/php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/por.tw\/php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/por.tw\/php\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":0,"href":"https:\/\/por.tw\/php\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/por.tw\/php\/wp-json\/wp\/v2\/media\/399"}],"wp:attachment":[{"href":"https:\/\/por.tw\/php\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/por.tw\/php\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/por.tw\/php\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}