{"id":194642,"date":"2022-08-01T20:37:24","date_gmt":"2022-08-01T12:37:24","guid":{"rendered":"https:\/\/www.idc.net\/help\/194642\/"},"modified":"2022-08-01T20:37:24","modified_gmt":"2022-08-01T12:37:24","slug":"%e5%90%8e%e6%b5%aa%e4%ba%91bt%e6%95%99%e7%a8%8b%ef%bc%9aphp%e7%bd%91%e7%ab%99%e6%89%93%e5%bc%80%e8%ae%bf%e9%97%ae%e6%85%a2%ef%bc%8c%e6%8e%92%e6%9f%a5%e8%bf%87%e7%a8%8b%e6%a1%88%e4%be%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/194642\/","title":{"rendered":"\u540e\u6d6a\u4e91BT\u6559\u7a0b\uff1aphp\u7f51\u7ad9\u6253\u5f00\u8bbf\u95ee\u6162\uff0c\u6392\u67e5\u8fc7\u7a0b\u6848\u4f8b\uff01"},"content":{"rendered":"<p>\u95ee\u9898\u63cf\u8ff0\uff1a<\/p>\n<p>\u5ba2\u6237\u53cd\u9988\u6628\u5929\u7f51\u7ad9\u8bbf\u95ee\u8fd8\u662f\u6b63\u5e38\u7684\uff0c\u4eca\u5929\u8bbf\u95ee\u7279\u522b\u6162\uff0c\u73af\u5883\u6e90\u7801\u4ec0\u4e48\u90fd\u6ca1\u52a8\u8fc7 \u8bf7\u6c42\u9700\u89811\u5206\u949f<\/p>\n<\/p>\n<p>\u62ff\u5230\u673a\u5668\u8d44\u6599\u540e\u68c0\u67e5\u8d1f\u8f7d\u4e00\u5207\u6b63\u5e38\uff0c\u67e5\u770b\u5ba2\u6237\u4f7f\u7528\u7684\u662f\u5b9d\u5854linux\u9762\u677f\uff0clnmp\u73af\u5883\uff0c\u53ef\u4ee5\u901a\u8fc7slow log\u8ffd\u8e2a\u5230\u95ee\u9898\u70b9<\/p>\n<p>\u6211\u4eec\u5148\u6765\u914d\u7f6eslow log\uff0c\u6267\u884c\uff1avi \/www\/server\/php\/70\/etc\/php-fpm.conf #\u6dfb\u52a0\u56fe\u4e24\u884c<\/p>\n<\/p>\n<p><span style=\"color: #ff0000\">request_slowlog_timeout = 30<\/span><\/p>\n<p><span style=\"color: #ff0000\">slowlog = var\/logs\/slow.log<\/span><\/p>\n<p>\u8bf4\u660e\uff1aslowlog\u5b9a\u4e49\u65e5\u5fd7\u8def\u5f84\u548c\u540d\u5b57\uff0crequest_slowlog_timeout\u5b9a\u4e49\u8d85\u65f6\u65f6\u95f4\uff0c\u5355\u4f4d\u79d2\uff0c\u5373\u4e00\u4e2aphp\u811a\u672c\u6267\u884c\u65f6\u95f4\u8d85\u8fc7\u4e86\u8be5\u65f6\u95f4\uff0c\u5219\u4f1a\u8bb0\u5f55\u65e5\u5fd7\u3002<\/p>\n<p>\u6dfb\u52a0\u5b8c\u6210\u540e\u91cd\u542fphp-fpm\uff0c\u9700\u91cd\u542f\u540e\u751f\u6548 \u63a5\u53d7\u91cd\u65b0\u8bbf\u95ee\u7f51\u7ad9\u5373\u4f1a\u751f\u6210\u76f8\u5173\u65e5\u5fd7 \u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p>[19-Mar-2020 08:15:46] [pool www] pid 31184<br \/> script_filename = \/www\/wwwroot\/IDC.NET\/public\/index.php<br \/> [0x00007fc46f0151f0] file_get_contents() \/www\/wwwroot\/IDC.NET\/extend\/hook\/AccessAuth.php(75) : eval()\u2019d code:3<br \/> [0x00007fc46f015070] [INCLUDE_OR_EVAL]() \/www\/wwwroot\/IDC.NET\/extend\/hook\/AccessAuth.php:75<br \/> [0x00007fc46f014ff0] auth() \/www\/wwwroot\/IDC.NET\/extend\/hook\/AccessAuth.php:43<br \/> [0x00007fc46f014b00] run() \/www\/wwwroot\/IDC.NET\/framework\/library\/think\/Hook.php:137<br \/> [0x00007fc46f0146c0] exec() \/www\/wwwroot\/IDC.NET\/framework\/library\/think\/Hook.php:95<br \/> [0x00007fc46f0144f0] listen() \/www\/wwwroot\/IDC.NET\/framework\/library\/think\/App.php:596<br \/> [0x00007fc46f013c70] module() \/www\/wwwroot\/IDC.NET\/framework\/library\/think\/App.php:456<br \/> [0x00007fc46f013940] exec() \/www\/wwwroot\/IDC.NET\/framework\/library\/think\/App.php:139<br \/> [0x00007fc46f013240] run() \/www\/wwwroot\/IDC.NET\/framework\/start.php:19<br \/> [0x00007fc46f0131b0] [INCLUDE_OR_EVAL]() \/www\/wwwroot\/IDC.NET\/public\/index.php:21<\/p>\n<p>slow log\uff0c\u4e0d\u4ec5\u8bb0\u5f55\u54ea\u4e00\u4e2a\u6587\u4ef6\u6162\uff0c\u800c\u4e14\u4e5f\u53ef\u4ee5\u8bb0\u5f55\u5177\u4f53\u54ea\u4e00\u884c\u7684\u4ec0\u4e48\u51fd\u6570\uff0c\u4ece\u4e0a\u9762\u7684\u65e5\u5fd7\u770b\u5230\u90fd\u662f\u7a0b\u5e8f\u5c42\u4e0a\u7684\u539f\u56e0\u5bfc\u81f4\uff0c\u672a\u6d89\u53ca\u6570\u636e\u5e93\u67e5\u8be2\uff0c\u770b\u5230file_get_contents()\u5fc3\u4e2d\u6697\u559c<\/p>\n<p>file_get_contents()\u4e00\u822c\u90fd\u662f\u8bf7\u6c42\u5916\u90e8\u94fe\u63a5\u5f02\u5e38\u5bfc\u81f4\u6574\u4f53\u7f51\u7ad9\u8bf7\u6c42\u6162\uff0c\u4e3a\u8bc1\u5b9e\u8fd9\u4e00\u70b9\u627e\u5230AccessAuth.php\u6587\u4ef675\u884c \u5982\u4e0b\u56fe\uff1a<\/p>\n<\/p>\n<p>\u67e5\u770bphp\u4ee3\u7801\u7ecf\u8fc7base64\u52a0\u5bc6\u9700\u8981\u89e3\u5bc6\u540e\u65b9\u53ef\u4ee5\u770b\u5230\u6e90\u7801\uff0c\u5982\u4e0b\uff1a<\/p>\n<p>try { if (cache(\u2018auth_domain\u2019) !== 1) { $c = file_get_contents(\u201chttps:\/\/xxxxxxxx.cn\/api.php?m=auth&amp;a=index&amp;prj_id=5&amp;domain={$_SERVER[\u2018HTTP_HOST\u2019]}&amp;vsign=\u8054\u52a8\u53d1\u5361|lovecode\/zidongfaka|12|weixiaobao|20190224170352\u201d); $res = json_decode($c, true); if ($res == false || $res[\u2018status\u2019] == -1) { \/\/exit(isset($res[\u2018info\u2019]) ? $res[\u2018info\u2019] : \u2018\u672a\u77e5\u9519\u8bef 403-1\u2019); } cache(\u2018auth_domain\u2019, 1, 3600); } } catch (\\Exception $e) { \/\/exit(isset($res[\u2018info\u2019]) ? $res[\u2018info\u2019] : \u2018\u672a\u77e5\u9519\u8bef 403-2\u2019); }<\/p>\n<p>\u591a\u5730\u8bf7\u6c42xxxxxxxx.cn\u7f51\u7ad9\u5f02\u5e38\uff0cping\u4e0d\u901a \u90a3\u4e48\u95ee\u9898\u5f88\u53ef\u80fd\u5c31\u51fa\u73b0\u5728\u8fd9 \u5c1d\u8bd5\u6ce8\u91ca\u4e0a\u8ff0\u4ee3\u7801\u518d\u6b21\u8bbf\u95ee\u54cd\u5e94\u6062\u590d\u6b63\u5e38<\/p>\n<\/p>\n<p>\u5e0c\u671b\u4f60\u53c2\u8003\u8be5\u6559\u7a0b\u80fd\u5e2e\u52a9\u4f60\u66f4\u5feb\u627e\u5230\u95ee\u9898\u6240\u5728\u5e76\u89e3\u51b3<\/p>\n<p>\u672c\u6559\u7a0b\u7531IDC.NET\u540e\u6d6a\u4e91\u51fa\u54c1 \u670d\u52a1\u5668\u8fd0\u7ef4\u5b98\u65b9\u7f51\u5740http:\/\/IDC.NET \u6b22\u8fce\u5927\u5bb6\u591a\u591a\u5173\u6ce8\u672c\u7ad9 \u611f\u8c22\u5927\u5bb6\u7684\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\u63cf\u8ff0\uff1a \u5ba2\u6237\u53cd\u9988\u6628\u5929\u7f51\u7ad9\u8bbf\u95ee\u8fd8\u662f\u6b63\u5e38\u7684\uff0c\u4eca\u5929\u8bbf\u95ee\u7279\u522b\u6162\uff0c\u73af\u5883\u6e90\u7801\u4ec0\u4e48\u90fd\u6ca1\u52a8\u8fc7 \u8bf7\u6c42\u9700\u89811\u5206\u949f \u62ff\u5230\u673a\u5668\u8d44\u6599 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":194643,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[],"class_list":["post-194642","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bt"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/194642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=194642"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/194642\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media\/194643"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=194642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=194642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=194642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}