{"id":94,"date":"2011-08-31T21:20:54","date_gmt":"2011-08-31T13:20:54","guid":{"rendered":"http:\/\/www.uut8.com\/?p=94"},"modified":"2011-08-31T21:20:54","modified_gmt":"2011-08-31T13:20:54","slug":"%e5%90%8e%e5%8f%b0%e6%96%87%e4%bb%b6%e6%a0%a1%e9%aa%8c%e5%b7%a5%e5%85%b7%e5%8e%9f%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.uut8.com\/?p=94","title":{"rendered":"\u540e\u53f0\u6587\u4ef6\u6821\u9a8c\u5de5\u5177\u539f\u7406"},"content":{"rendered":"<p>\u6700\u8fd1\u5f88\u591a\u7ad9\u70b9\u6253\u4e860817\u7684\u8865\u4e01\uff0c\u51fa\u73b0\u9875\u9762500\u9519\u8bef\uff0c\u6216\u8fd9\u6f0f\u51fa<a href=\"http:\/\/www.discuz.net\/search.php?mod=my&amp;source=adlink&amp;q=%D4%B4%B4%FA%C2%EB\" target=\"_blank\" rel=\"noopener\">\u6e90\u4ee3\u7801<\/a>\u3002\u867d\u7136\u4e0d\u90fd\u662f\u6587\u4ef6\u4e0d\u5b8c\u6574\u9020\u6210\u7684\uff0c\u4f46\u4e5f\u6709\u4e00\u90e8\u5206\u662f\u8fd9\u6837\u7684\u3002<br \/>\n\u6709\u4e9b\u7ad9\u70b9\u4fee\u6539\u8fc7\u6587\u4ef6\uff0c\u6216<a href=\"http:\/\/www.discuz.net\/search.php?mod=my&amp;source=adlink&amp;q=ftp%B9%A4%BE%DF\" target=\"_blank\" rel=\"noopener\">ftp\u5de5\u5177<\/a>\u4e0a\u4f20\u8fc7\u7a0b\u4e2d\u6587\u4ef6\u4e0a\u4f20\u7684\u4e0d\u5b8c\u6574\uff0c\u5c31\u51fa\u73b0\u4e86\u8fd9\u6837\u90a3\u6837\u7684\u95ee\u9898\uff0c\u627e\u4e0d\u5230\u6839\u6e90\uff0c\u8fd8\u4ee5\u4e3a\u8bbe\u7f6e\u7684\u95ee\u9898\u3002<br \/>\n\u5982\u679c\u7ad9\u70b9\u51fa\u73b0\u6240\u8c13\u7684\u4e71\u7801\u5373\u6f0f\u51fa<a href=\"http:\/\/www.discuz.net\/search.php?mod=my&amp;source=adlink&amp;q=%D4%B4%C2%EB\" target=\"_blank\" rel=\"noopener\">\u6e90\u7801<\/a>\uff0c\u6216\u8005\u4e0d\u660e\u539f\u56e0\u7a7a\u767d\u4e86\uff0c\u7b2c\u4e00\u4e2a\u5e94\u8be5\u60f3\u5230\u7684\u5c31\u662f\u6587\u4ef6\u6821\u9a8c\uff0c\u8fd9\u4e2a\u529f\u80fd\u6211\u53d1\u73b0\u5f88\u591a\u4eba\u4e0d\u7528\u3002\u5982\u679c\u7ad9\u957f\u81ea\u5df1\u4e0d\u61c2\u4ee3\u7801\uff0c\u66f4\u6ca1\u6539\u8fc7\u6e90\u7801\uff0c\u5982\u679c\u51fa\u73b0\u4e0a\u8ff0\u95ee\u9898\uff0c\u90a3\u5c31\u5f97\u5fc5\u987b\u6821\u9a8c\u6587\u4ef6\uff0c\u56e0\u4e3a\u4f60\u6ca1\u52a8\u8fc7\uff0c\u7406\u8bba\u4e0a\u662f\u6e90\u6587\u4ef6\u5b8c\u6574\u7684\uff0c\u5982\u679c\u6821\u9a8c\u51fa\u95ee\u9898\uff0c\u54ea\u4e9b\u6587\u4ef6\u4fee\u6539\u8fc7\uff0c\u6216\u4e22\u5931\uff0c\u4f20\u5b8c\u6574\u7684\u6587\u4ef6\u8986\u76d6\u90fd\u80fd\u89e3\u51b3\u95ee\u9898\u3002<br \/>\n\u6211\u4eec\u770b\u770b\u6587\u4ef6\u6821\u9a8c\u5de5\u5177\u5982\u4f55\u5de5\u4f5c\u7684\uff1a<!--more--><br \/>\n\u901a\u8fc7\u540e\u53f0\u94fe\u63a5\uff08admin.php?action=checktools&amp;operation=filecheck\uff09\u77e5\u9053\uff0c\u8c03\u7528source\u76ee\u5f55\u4e0badmincp\u76ee\u5f55\u4e0b\u7684amdincp_checktools.php\u6587\u4ef6\u3002<\/p>\n<pre class=\"brush:php\">if(!$discuzfiles = @file('.\/source\/admincp\/discuzfiles.md5')) {\n                        cpmsg('filecheck_nofound_md5file', '', 'error');\n}<\/pre>\n<p>\u8fd9\u4e2adiscuzfiles.md5\u6587\u4ef6\uff0c\u5c31\u662f\u6e90\u6587\u4ef6\u6253\u5305\u65f6\uff0c\u81ea\u5e26\u7684\u3002\u662f\u5bf9\u6574\u4e2a\u6587\u4ef6\u8fdb\u884cmd5\u52a0\u5bc6\u540e\u7684\u5185\u5bb9\u3002\u5185\u5bb9\u5927\u6982\u7c7b\u4f3c\u4e8e\uff1a<\/p>\n<p>0f6c9556a3227a6cad2a1a73b35bff6d *.\/admin.php<br \/>\nac32c9e1f5286d86a4fe2ec70d4c42bb *.\/api<br \/>\ndf03ab804e12efa0455a565a6797f3d4 *api\/connect\/connect.php<br \/>\n6b5b6ea7d9737c181088d68a6171a960 *api\/connect\/like.php<\/p>\n<p>\u2026\u2026 \u2026\u2026<br \/>\n\u524d\u9762\u7684\u5b57\u7b26\u4e32\u5c31\u662f\u5bf9\u540e\u9762\u7684\u6587\u4ef6md5\u540e\u5f97\u51fa\u7684\uff0c\u5305\u62ec\u521b\u5efa\u4fee\u6539\u65f6\u95f4\uff0c\u6587\u4ef6\u5927\u5c0f\uff0c\u7b49\u7b49\u4fe1\u606f\u3002<br \/>\n\u8fd9\u91cc\u5224\u65ad\u4e00\u4e0b\u662f\u5426\u80fd\u8bfb\u5230\u8fd9\u4e2a\u6587\u4ef6\uff0c\u8bfb\u4e0d\u5230\uff0c\u62a5\u9519\uff0c\u7f3a\u5c11\u8fd9\u4e2a\u6587\u4ef6\u3002<\/p>\n<pre class=\"brush:php\">checkfiles('.\/', '', 0);\n                checkfiles('config\/', '', 1, 'config_global.php,config_ucenter.php');\n                checkfiles('data\/', '\\.xml', 0);\n                checkfiles('data\/avatar\/', '\\.htm', 0);\n                checkfiles('data\/cache\/', '\\.htm', 0);\n                checkfiles('data\/ipdata\/', '\\.htm|\\.dat', 0);\n                checkfiles('data\/template\/', '\\.htm', 0);\n                checkfiles('data\/threadcache\/', '\\.htm', 0);\n                checkfiles('template\/', '');\n                checkfiles('api\/', '');\n                checkfiles('source\/', '', 1, 'discuzfiles.md5');\n                checkfiles('static\/', '');\n                checkfiles('archiver\/', '');\n                checkfiles('uc_client\/', '\\.php|\\.htm', 0);<\/pre>\n<p>\u4e0b\u9762\u7684\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u5c31\u662f\u5faa\u73af\u904d\u5386\u76ee\u5f55\u53ca\u95ee\u4ef7\uff0c\u7136\u540e\u4e5f\u540c\u6837\u662f\u8fdb\u884cmd5\u64cd\u4f5c\uff0c\u76ee\u7684\u662f\u548c\u521d\u59cb\u7684md5\u4e32\u5bf9\u6bd4\u3002<\/p>\n<pre class=\"brush:php\">foreach($discuzfiles as $line) {\n                        $file = trim(substr($line, 34));\n                        $md5datanew[$file] = substr($line, 0, 32);\n                        if($md5datanew[$file] != $md5data[$file]) {\n                                $modifylist[$file] = $md5data[$file];\n                        }\n                        $md5datanew[$file] = $md5data[$file];\n                }<\/pre>\n<p>\u63a5\u4e0b\u6765\u5c31\u662f\u62ff\u521d\u59cb\u7684\u548c\u540e\u6765md5\u7684\u8d4b\u503c\u5904\u7406\uff0c\u6700\u540e\u5f97\u51fa\u7684\u7ed3\u679c\u65e2\u5305\u542b\u4e86\u4fee\u6539\u7684\uff0c\u53c8\u5305\u542b\u4e22\u5931\u7684\uff0c\u6539\u52a8\u8fc7\u7684\uff0c\u4ee5\u5907\u63a5\u7740\u548c\u65b0md5\u7684\u6570\u636e\u5c3d\u5fc3\u6bd4\u5bf9\u3002<\/p>\n<pre class=\"brush:php\">$addlist = @array_merge(@array_diff_assoc($md5data, $md5datanew), $cachelist[2]);\n                $dellist = @array_diff_assoc($md5datanew, $md5data);\n                $modifylist = @array_merge(@array_diff_assoc($modifylist, $dellist), $cachelist[1]);\n                $showlist = @array_merge($md5data, $md5datanew, $cachelist[0]);<\/pre>\n<p>\u4ee5\u4e0a\u56db\u53e5\uff0c\u5206\u522b\u4e3a\u591a\u51fa\u6765\u7684\u6587\u4ef6\uff1b\u4e22\u5931\u7684\u6587\u4ef6\uff1b\u4fee\u6539\u8fc7\u7684\u53ca\u672a\u77e5\u7684\u7b49\u7b49\u3002\u90fd\u662f\u901a\u8fc7<span>array_diff_assoc\u51fd\u6570\uff0c\u628a\u521d\u59cb\u7684md5\u6570\u636e\u548c\u65b0md5\u6570\u636e\u6bd4\u5bf9\uff0c\u5f97\u51fa\u7ed3\u679c\u3002\u5269\u4e0b\u7684\u4ee3\u7801\u5c31\u662f\u5bf9\u4e00\u4e9b\u8981\u663e\u793a\u7684\u53d8\u91cf\u8fdb\u884c\u8d4b\u503c\u3002<\/span><br \/>\n<span>\u4e4b\u524d \u5199\u7684\u4e00\u4e2a\u53ef\u4ee5\u72ec\u7acb\u8fd0\u884c\u7684\u6587\u4ef6\u6821\u9a8c\u5c0f\u811a\u672c\uff0c\u5c31\u662f\u901a\u8fc7\u8fd9\u4e2a\u539f\u7406\u6765\u5199\u7684\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5f88\u591a\u7ad9\u70b9\u6253\u4e860817\u7684\u8865\u4e01\uff0c\u51fa\u73b0\u9875\u9762500\u9519\u8bef\uff0c\u6216\u8fd9\u6f0f\u51fa&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[12,14,22],"class_list":["post-94","post","type-post","status-publish","format-standard","hentry","category-discuz","tag-discuz-2","tag-discuz-x2","tag-dz"],"_links":{"self":[{"href":"https:\/\/www.uut8.com\/index.php?rest_route=\/wp\/v2\/posts\/94","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.uut8.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.uut8.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.uut8.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uut8.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=94"}],"version-history":[{"count":0,"href":"https:\/\/www.uut8.com\/index.php?rest_route=\/wp\/v2\/posts\/94\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.uut8.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=94"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.uut8.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=94"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.uut8.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}