{"id":39989,"date":"2026-08-01T01:21:19","date_gmt":"2026-07-31T18:21:19","guid":{"rendered":"https:\/\/dps.media\/xu-ly-wordpress-bi-hack-quy-trinh-10-buoc\/"},"modified":"2026-08-01T01:21:19","modified_gmt":"2026-07-31T18:21:19","slug":"xu-li-wordpress-bi-hack-quy-trinh-10-buoc","status":"publish","type":"post","link":"https:\/\/dps.media\/zh\/xu-ly-wordpress-bi-hack-quy-trinh-10-buoc\/","title":{"rendered":"\u5904\u7406 WordPress \u88ab\u9ed1\uff1a10 \u6b65\u5f7b\u5e95\u6e05\u9664\u6076\u610f\u4ee3\u7801\u5e76\u4fee\u8865\u5b89\u5168\u6f0f\u6d1e\u7684\u6d41\u7a0b"},"content":{"rendered":"<p>\u67d0\u4e00\u5929\uff0c\u60a8\u7684\u7f51\u7ad9\u7a81\u7136\u51fa\u73b0\u5f02\u5e38\u8ff9\u8c61\uff1a\u81ea\u7136\u8bbf\u95ee\u91cf\u9aa4\u7136\u4e0b\u964d\uff0c\u5ba2\u6237\u53cd\u9988\u88ab\u91cd\u5b9a\u5411\u5230\u964c\u751f\u7684\u535a\u5f69\u7f51\u7ad9\uff0c\u6216\u7ba1\u7406\u540e\u53f0\u914d\u7f6e\u9875\u9762\u4e2d\u51fa\u73b0\u4e86\u51e0\u4e2a\u6765\u5386\u4e0d\u660e\u7684\u7ba1\u7406\u5458\u8d26\u6237\u3002\u5982\u679c\u60a8\u6b63\u9762\u4e34\u8fd9\u4e9b\u95ee\u9898\uff0c\u663e\u7136\u60a8\u7684\u7f51\u7ad9\u5df2\u611f\u67d3\u6076\u610f\u4ee3\u7801\u3002\u5c3d\u5feb\u627e\u5230 <strong><a href=\"https:\/\/dps.media\/zh\/xu-li-wordpress-bi-hack-quy-trinh-10-buoc\/\">\u5904\u7406 wordpress \u88ab\u9ed1\u5ba2\u653b\u51fb<\/a><\/strong> \u5bf9\u4e8e\u4fdd\u62a4\u5ba2\u6237\u6570\u636e\u3001\u7ef4\u62a4\u54c1\u724c\u4fe1\u8a89\u4ee5\u53ca\u907f\u514d\u88ab Google \u5217\u5165\u9ed1\u540d\u5355\u81f3\u5173\u91cd\u8981\u3002<\/p><p>\u8fd1\u671f\uff0cDPS.MEDIA \u6280\u672f\u56e2\u961f\u6210\u529f\u534f\u52a9\u6062\u590d\u4e86\u4e00\u4e2a\u906d\u53d7\u4e25\u91cd\u6076\u610f\u8f6f\u4ef6\u611f\u67d3\u7684\u4f01\u4e1a\u7f51\u7ad9\u7cfb\u7edf\uff08\u670d\u52a1\u5668\u4e0a\u7684\u5b58\u50a8\u8def\u5f84\u4e3a `\/home\/yourdomain.com\/public_html\/`\uff09\u3002\u5bf9 Wordfence CLI \u65e5\u5fd7\u6587\u4ef6\u7684\u6280\u672f\u5206\u6790\u663e\u793a\uff0c\u8be5\u7f51\u7ad9\u5305\u542b 16,854 \u4e2a\u6587\u4ef6\uff0c\u626b\u63cf\u603b\u5bb9\u91cf\u4e3a 281.2 MiB\u3002Wordfence \u626b\u63cf\u8017\u65f6 851 \u79d2\uff08\u7ea6 14 \u5206\u949f\uff09\uff0c\u5171\u68c0\u6d4b\u51fa 3 \u4e2a\u53ef\u7591\u6587\u4ef6\uff08\u542b\u6076\u610f\u4ee3\u7801\u7684\u7591\u4f3c\u6587\u4ef6\uff09\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u5206\u4eab\u8fd9\u4e00\u771f\u5b9e\u6848\u4f8b\u7814\u7a76\uff0c\u5217\u51fa\u5177\u4f53\u7684\u6076\u610f\u63d2\u4ef6\u540d\u79f0\u3001\u9ed1\u5ba2\u4f2a\u9020\u7684\u7ba1\u7406\u5458\u8d26\u6237\uff0c\u4ee5\u53ca\u4ece\u5934\u5230\u5c3e\u7684\u6e05\u7406\u6d41\u7a0b\uff0c\u4ee5\u4fbf\u60a8\u81ea\u884c\u68c0\u67e5\u60a8\u7684\u7cfb\u7edf\u3002<\/p><h2>\u7b2c 1 \u6b65\uff1a\u4f7f\u7528 Wordfence CLI \u626b\u63cf\u68c0\u6d4b\u6076\u610f\u4ee3\u7801<\/h2><p>Wordfence CLI \u662f\u5728\u670d\u52a1\u5668\uff08VPS\/Server\uff09\u547d\u4ee4\u884c\u4e0a\u8fd0\u884c\u7684\u6076\u610f\u4ee3\u7801\u626b\u63cf\u5de5\u5177\uff0c\u529f\u80fd\u6781\u4e3a\u5f3a\u5927\uff0c\u5904\u7406\u901f\u5ea6\u8fdc\u5feb\u4e8e\u666e\u901a\u63d2\u4ef6\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fde\u63a5 Wordfence \u7684\u514d\u8d39\u8bb8\u53ef\u8bc1\u5bc6\u94a5\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">wordfence configure<\/code><\/pre><p>\u968f\u540e\uff0c\u5bf9\u7f51\u7ad9\u6e90\u4ee3\u7801\u76ee\u5f55\u8fdb\u884c\u626b\u63cf\uff0c\u5e76\u5c06\u7ed3\u679c\u8f93\u51fa\u5230\u4e00\u4e2a\u56fa\u5b9a\u7684\u65e5\u5fd7\u6587\u4ef6\u4e2d\uff0c\u4ee5\u4fbf\u4e8e\u5206\u6790\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">wordfence malware-scan --output-path=\/home\/yourdomain.com\/public_html\/wordfence-scan-log.log \/home\/yourdomain.com\/public_html\/<\/code><\/pre><h3>\u5173\u4e8e\u88ab\u8df3\u8fc7\u6587\u4ef6\u6570\u91cf\uff08Skipped Files\uff09\u7684\u7279\u522b\u91cd\u8981\u63d0\u793a<\/h3><p>\u626b\u63cf\u8fc7\u7a0b\u4e2d\uff0c\u7cfb\u7edf\u62a5\u544a\u6700\u591a\u6709 <strong>\u5df2\u8df3\u8fc7 7,903 \u4e2a\u6587\u4ef6<\/strong>\u3002\u539f\u56e0\u662f Wordfence CLI \u9ed8\u8ba4\u4ec5\u626b\u63cf\u6e90\u4ee3\u7801\u6587\u4ef6\uff08\u5982 PHP\uff09\u3002\u7136\u800c\uff0c\u5982\u4eca\u7684\u9ed1\u5ba2\u975e\u5e38\u72e1\u733e\uff0c\u4ed6\u4eec\u5e38\u5c06 webshell \u9690\u85cf\u5728\u9759\u6001\u6587\u4ef6\u4e2d\uff0c\u6216\u5c06 PHP \u4ee3\u7801\u63d2\u5165\u5230 `.jpg`\u3001`.png`\u3001`.css` \u6216 `.js` \u7b49\u6269\u5c55\u540d\u7684\u9759\u6001\u6587\u4ef6\u4e2d\u3002<\/p><p>\u56e0\u6b64\uff0c\u4e3a\u786e\u4fdd\u5f7b\u5e95\u6e05\u7406\uff0c\u60a8\u5fc5\u987b\u901a\u8fc7\u6dfb\u52a0\u53c2\u6570\u6807\u5fd7\u8fdb\u884c\u5168\u9762\u6df1\u5ea6\u626b\u63cf\uff1a <code data-no-translation=\"\">--include-all-files<\/code>:<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">wordfence malware-scan --include-all-files --output-path=\/home\/yourdomain.com\/public_html\/wordfence-scan-full-\\\\$(date +%Y%m%d-%H%M%S).log \/home\/yourdomain.com\/public_html\/<\/code><\/pre><p>\u6b64\u5916\uff0c\u5982\u679c\u65e5\u5fd7\u4e2d\u63d0\u793a\u5b58\u5728 <strong>\u8d85\u65f6<\/strong> \uff08\u7cfb\u7edf\u51fa\u73b0 1 \u6b21\u8d85\u65f6\uff09\uff0c\u8bf7\u7acb\u5373\u68c0\u67e5\u53d1\u751f\u8d85\u65f6\u7684\u6587\u4ef6\u3002\u90a3\u4e9b\u4f53\u79ef\u5f02\u5e38\u5de8\u5927\u6216\u5904\u7406\u65f6\u95f4\u8fc7\u957f\u7684\u6587\u4ef6\uff0c\u901a\u5e38\u662f\u9ed1\u5ba2\u5305\u542b\u6570\u767e\u4e07\u884c\u52a0\u5bc6\u4ee3\u7801\uff08obfuscated code\uff09\u7684\u6587\u4ef6\u3002<\/p><p><img decoding=\"async\" src=\"https:\/\/dps.media\/wp-content\/uploads\/2026\/08\/xu_ly_wordpress_bi_hack_quy_trinh_10_buo_img3-1.png\" alt=\"\u5904\u7406 wordpress \u88ab\u9ed1\u5ba2\u653b\u51fb\" style=\"display:block;margin:20px auto;max-width:100%;height:auto\" title=\"\"><\/p><h2>\u6b65\u9aa4 2\uff1a\u8bfb\u53d6\u65e5\u5fd7\u6587\u4ef6\u5e76\u51c6\u786e\u5b9a\u4f4d\u6076\u610f\u4ee3\u7801\u540d\u79f0<\/h2><p>\u7531\u4e8e Wordfence \u4ec5\u5728\u6700\u7ec8\u6c47\u603b\u4e2d\u62a5\u544a\u53ef\u7591\u6587\u4ef6\u6570\u91cf\uff0c\u60a8\u9700\u8981\u4f7f\u7528\u8fc7\u6ee4\u547d\u4ee4\u67e5\u660e\u8fd9 3 \u4e2a\u6587\u4ef6\u7684\u8be6\u7ec6\u8def\u5f84 <code data-no-translation=\"\">grep<\/code>:<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">grep -i \"suspicious\\|malicious\\|match\" \/home\/yourdomain.com\/public_html\/wordfence-scan-log.log<\/code><\/pre><p>\u6216\u8005\uff0c\u60a8\u4e5f\u53ef\u4ee5\u5c06\u626b\u63cf\u7ed3\u679c\u76f4\u63a5\u5bfc\u51fa\u4e3a CSV \u683c\u5f0f\uff0c\u4fbf\u4e8e\u76f4\u89c2\u5206\u6790\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">wordfence malware-scan --output-format=csv --output-path=\/home\/yourdomain.com\/public_html\/wordfence-scan-results.csv \/home\/yourdomain.com\/public_html\/<\/code><\/pre><p>\u6839\u636e\u5b9e\u9645\u65e5\u5fd7\uff0c\u6211\u4eec\u53d1\u73b0\u4e86 3 \u4e2a\u5177\u4f53\u7684\u6076\u610f\u6587\u4ef6\uff0c\u5305\u62ec\uff1a<\/p><ul>\n<li><strong>wp-content-filter\/wp-content-filter.php:<\/strong> \u4f2a\u88c5\u63d2\u4ef6\u5305\u542b\u6076\u610f\u4ee3\u7801\uff0c\u53ef\u521b\u5efa\u7ba1\u7406\u5458\u8d26\u6237\u5e76\u8f93\u51fa\u786e\u8ba4\u5b57\u6837\u201cOK\u201d\u3002\u8fd9\u662f\u5178\u578b\u7684\u7ba1\u7406\u5458\u540e\u95e8\u624b\u6cd5\uff0c\u9ed1\u5ba2\u901a\u5e38\u901a\u8fc7\u9690\u85cf\u7684 HTTP \u53c2\u6570\u8fdc\u7a0b\u89e6\u53d1\u3002<\/li>\n<li><strong>wordpress-cache-optimizer\/wordpress-cache-optimizer.php:<\/strong> \u4f2a\u88c5\u6210\u7f13\u5b58\u4f18\u5316\u5de5\u5177\uff08caching tool\uff09\u7684\u865a\u5047\u63d2\u4ef6\u3002\u8be5\u6587\u4ef6\u5305\u542b\u81ea\u52a8\u6ce8\u5165\u9690\u85cf\u7ba1\u7406\u5458\u8d26\u6237\u7684\u4ee3\u7801\uff0c\u5176\u767b\u5f55\u51ed\u636e\u5df2\u88ab\u786c\u7f16\u7801\u5199\u5165\u3002<\/li>\n<li><strong>wp-fixplugin.php\uff1a<\/strong> \u4f4d\u4e8e\u6587\u4ef6\u5939\u4e2d <code data-no-translation=\"\">wp-content\/mu-plugins\/<\/code> \uff08Must-Use Plugins\uff0c\u81ea\u52a8\u52a0\u8f7d\u4e14\u4e0d\u4f1a\u663e\u793a\u5728\u5e38\u89c4\u63d2\u4ef6\u5217\u8868\u4e2d\uff09\u3002\u8be5\u6587\u4ef6\u4f1a\u81ea\u52a8\u63d2\u5165\u4e00\u4e2a\u6076\u610f script \u6807\u7b7e\uff0c\u5f62\u5f0f\u4e3a <code data-no-translation=\"\">&lt;script src=\"...\"&gt;<\/code> \u8fdb\u5165\u6807\u7b7e <code data-no-translation=\"\">&lt;head&gt;<\/code> \u7f51\u7ad9\u7684\uff0c\u76ee\u7684\u662f\u5c06\u7528\u6237\u91cd\u5b9a\u5411\u5230\u535a\u5f69\u7f51\u7ad9\u3002\u5176\u72e1\u733e\u4e4b\u5904\u5728\u4e8e\uff0c\u8be5\u6587\u4ef6\u4f7f\u7528\u4e86\u51fd\u6570 <code data-no-translation=\"\">is_user_logged_in()<\/code> \u4ee5\u4fbf <strong>\u5bf9\u5df2\u767b\u5f55\u7684\u7ba1\u7406\u5458\u9690\u85cf\u8be5\u6076\u610f\u811a\u672c<\/strong> \u4ee5\u907f\u514d\u88ab\u7ba1\u7406\u5458\u5728\u6d4f\u89c8\u81ea\u5df1\u7684\u7f51\u7ad9\u65f6\u53d1\u73b0\u3002<\/li>\n<\/ul><p>\u786e\u5b9a\u51c6\u786e\u4f4d\u7f6e\u540e\uff0c\u8bf7\u4f7f\u7528\u547d\u4ee4\u5f7b\u5e95\u5220\u9664\u8fd9\u4e9b\u6076\u610f\u6587\u4ef6\u5939\u548c\u6587\u4ef6\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">rm -rf \/home\/yourdomain.com\/public_html\/wp-content\/plugins\/wp-content-filter\nrm -rf \/home\/yourdomain.com\/public_html\/wp-content\/plugins\/wordpress-cache-optimizer\nrm \/home\/yourdomain.com\/public_html\/wp-content\/mu-plugins\/wp-fixplugin.php<\/code><\/pre><h2>\u7b2c 3 \u6b65\uff1a\u68c0\u67e5\u5e76\u5220\u9664\u4f2a\u9020\u7684\u7ba1\u7406\u5458\u8d26\u6237<\/h2><p>\u5217\u51fa\u7f51\u7ad9\u4e0a\u6240\u6709\u62e5\u6709\u6700\u9ad8\u6743\u9650\u7684\u8d26\u6237\uff08\u4f7f\u7528 WP-CLI\uff09\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">wp user list --role=administrator --allow-root --path=\/home\/yourdomain.com\/public_html<\/code><\/pre><p>\u7ed3\u5408\u6e90\u4ee3\u7801\u548c\u8d26\u6237\u521b\u5efa\u65f6\u95f4\u8fdb\u884c\u6bd4\u5bf9\uff0c\u6211\u4eec\u53d1\u73b0\u9ed1\u5ba2\u521b\u5efa\u4e86 2 \u4e2a\u5047\u5192\u7684\u7ba1\u7406\u5458\u8d26\u6237\uff1a<\/p><ul>\n<li><strong>wphiddenbot (ID 4)\uff1a<\/strong> \u521b\u5efa\u4e8e 2026-07-21 03:54:55\uff0c\u663e\u793a\u540d\u79f0\u4e3a\u201cCache Worker\u201d\uff0c\u90ae\u7bb1 <code data-no-translation=\"\">wphiddenbot@gmail.com<\/code>. \u8fd9\u662f\u7531\u4f2a\u88c5\u63d2\u4ef6\u521b\u5efa\u7684\u8d26\u6237 <code data-no-translation=\"\">wordpress-cache-optimizer.php<\/code>.<\/li>\n<li><strong>wpenginebot\uff08ID 3\uff09\uff1a<\/strong> \u521b\u5efa\u4e8e 2026-07-20 21:41:33\uff08\u6bd4 wphiddenbot \u65e9\u7ea6 6 \u5c0f\u65f6\uff09\u3002\u8fd9\u6b63\u662f\u7531\u540e\u95e8 <code data-no-translation=\"\">wp-content-filter.php<\/code> \u521b\u5efa\u3002\u521b\u5efa\u65f6\u95f4\u4e0e\u6076\u610f\u4ee3\u7801\u6295\u653e\u5230\u670d\u52a1\u5668\u7684\u65f6\u95f4\u543b\u5408\u3002<\/li>\n<\/ul><p>\u5220\u9664\u8fd9 2 \u4e2a\u4f2a\u9020\u8d26\u6237\uff0c\u5e76\u5c06\u6587\u7ae0\u91cd\u65b0\u5206\u914d\u7ed9\u771f\u5b9e\u7684\u7ba1\u7406\u5458\u8d26\u6237\uff08ID 1\uff09\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">wp user delete 3 --reassign=1 --allow-root --path=\/home\/yourdomain.com\/public_html\nwp user delete 4 --reassign=1 --allow-root --path=\/home\/yourdomain.com\/public_html<\/code><\/pre><h2>\u7b2c 4 \u6b65\uff1a\u6e05\u7406\u6570\u636e\u5e93\u4e2d\u6df1\u85cf\u7684\u6076\u610f\u914d\u7f6e<\/h2><p>\u6076\u610f\u4ee3\u7801\u4e0d\u4ec5\u5b58\u5728\u4e8e\u6587\u4ef6\u4e2d\uff0c\u8fd8\u5728\u6570\u636e\u5e93\u4e2d\u4fdd\u5b58\u6076\u610f\u914d\u7f6e\uff08\u8868 <code data-no-translation=\"\">wp_options<\/code>\uff09\u3002\u5f88\u591a\u60c5\u51b5\u4e0b\uff0c\u7ba1\u7406\u5458\u5220\u9664\u4e86 PHP \u6587\u4ef6\uff0c\u4f46\u6ca1\u6709\u6e05\u7406\u6570\u636e\u5e93\uff0c\u5bfc\u81f4\u7f51\u7ad9\u4ecd\u4f1a\u518d\u6b21\u88ab\u5165\u4fb5\u3002<\/p><p>\u8981\u5728\u6570\u636e\u5e93\u4e2d\u67e5\u627e\u8fd9\u4e9b\u6076\u610f\u9009\u9879\uff0c\u8bf7\u4f7f\u7528 WP-CLI \u8fd0\u884c\u4ee5\u4e0b\u68c0\u67e5\u547d\u4ee4\uff08\u6ce8\u610f\u5c06\u57df\u540d\u8def\u5f84\u66f4\u6539\u4e3a\u5b9e\u9645\u8def\u5f84\uff0c\u5e76\u5c06 <code data-no-translation=\"\">yourdomain.com<\/code>):<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">wp option list --search=\"*fixplugin*\" --allow-root --path=\/home\/yourdomain.com\/public_html\nwp option list --search=\"*cache_optimizer*\" --allow-root --path=\/home\/yourdomain.com\/public_html\nwp option list --search=\"*content_filter*\" --allow-root --path=\/home\/yourdomain.com\/public_html<\/code><\/pre><p>\u7ec8\u7aef\u663e\u793a\u7684\u7ed3\u679c\u5c06\u5e2e\u52a9\u60a8\u7acb\u5373\u8bc6\u522b\u5f02\u5e38\u914d\u7f6e\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">+-------------------------+--------------------------------------------------+\n| option_name             | option_value                                     |\n+-------------------------+--------------------------------------------------+\n| wp_fixplugin_script_url | https:\/\/mamglaqwek.com\/googletagmanager.js?v=2.0 |\n| wp_fixplugin_script_ver | 1785515873                                       |\n+-------------------------+--------------------------------------------------+\n+-------------+--------------+\n| option_name | option_value |\n+-------------+--------------+\n+-------------+--------------+\n| option_name | option_value |\n+-------------+--------------+\n+-------------+--------------+\n| option_name | option_value |\n+-------------+--------------+<\/code><\/pre><p>\u5177\u4f53\u800c\u8a00\uff0cmu-plugin <code data-no-translation=\"\">wp-fixplugin.php<\/code> \u8c03\u7528\u51fd\u6570 <code data-no-translation=\"\">get_option()<\/code> \u6765\u81ea\u914d\u7f6e\u5e38\u91cf\u3002\u5b9e\u9645\u68c0\u67e5\u65f6\uff0c\u6211\u4eec\u5728\u8868\u4e2d\u53d1\u73b0\u4e86\u4e24\u4e2a\u88ab\u6dfb\u52a0\u7684\u6076\u610f\u9009\u9879 <code data-no-translation=\"\">wp_options<\/code>:<\/p><ul>\n<li><strong>wp_fixplugin_script_url:<\/strong> \u4fdd\u5b58\u6076\u610f\u811a\u672c\u94fe\u63a5\u7684\u503c <code data-no-translation=\"\">https:\/\/mamglaqwek.com\/googletagmanager.js?v=2.0<\/code>\u3002\u8be5\u94fe\u63a5\u4f2a\u88c5\u6210 Google Tag Manager\uff0c\u4ee5\u6df7\u6dc6\u60a8\u771f\u6b63\u7684\u8ddf\u8e2a\u4ee3\u7801\uff08\u4f8b\u5982 <code data-no-translation=\"\">GTM-WPTSRZZJ<\/code>).<\/li>\n<li><strong>wp_fixplugin_script_ver:<\/strong> \u4fdd\u5b58\u65f6\u95f4\u6233 <code data-no-translation=\"\">1785511188<\/code> \uff08\u6216\u5176\u4ed6\u65f6\u95f4\u6233\u53d8\u4f53\uff0c\u4f8b\u5982 <code data-no-translation=\"\">1785515873<\/code>).<\/li>\n<\/ul><p>\u8fd9\u4e24\u4e2a\u9009\u9879\u5177\u6709 <code data-no-translation=\"\">option_id<\/code> \u6570\u503c\u975e\u5e38\u5927\uff08\u9ad8\u8fbe 100,136\uff09\uff0c\u8868\u660e\u5b83\u4eec\u662f\u5728 7\u670820-21\u65e5\u7684\u653b\u51fb\u94fe\u4e2d\u8fd1\u671f\u88ab\u6ce8\u5165\u7684\u3002\u4f7f\u7528 WP-CLI \u5f7b\u5e95\u5220\u9664\u8fd9\u4e9b\u9009\u9879\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">wp option delete wp_fixplugin_script_url --allow-root --path=\/home\/yourdomain.com\/public_html\nwp option delete wp_fixplugin_script_ver --allow-root --path=\/home\/yourdomain.com\/public_html<\/code><\/pre><h3>\u8ffd\u8e2a\u6eaf\u6e90\u5e76\u6df1\u5165\u641c\u7d22\uff1a<\/h3><p>\u9ed1\u5ba2\u901a\u5e38\u4f1a\u8bbe\u7f6e\u5907\u7528\u673a\u5236\uff0c\u63d2\u5165\u6076\u610f\u94fe\u63a5 <code data-no-translation=\"\">mamglaqwek.com<\/code> \u5728\u5176\u4ed6\u8bb8\u591a\u4f4d\u7f6e\u4e5f\u53ef\u80fd\u5b58\u5728\uff0c\u4f8b\u5982\u6587\u7ae0\u5185\u5bb9\u3001\u5c0f\u5de5\u5177\u6216\u4e3b\u9898\u3002\u60a8\u9700\u8981\u626b\u63cf\u6574\u4e2a\u7cfb\u7edf\uff0c\u67e5\u627e\u8be5\u57df\u540d\u7684\u75d5\u8ff9\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\"># Qu\u00e9t t\u00ecm trong to\u00e0n b\u1ed9 file c\u1ee7a wp-content\ngrep -rl \"mamglaqwek.com\" \/home\/yourdomain.com\/public_html\/ 2>\/dev\/null\n\n# Qu\u00e9t t\u00ecm trong to\u00e0n b\u1ed9 c\u00e1c b\u1ea3ng d\u1eef li\u1ec7u database\nwp db search \"mamglaqwek.com\" --allow-root --path=\/home\/yourdomain.com\/public_html<\/code><\/pre><h2>\u6b65\u9aa45\uff1a\u68c0\u67e5\u914d\u7f6e\u6587\u4ef6\u5e76\u4fee\u8865\u4e25\u91cd\u6f0f\u6d1e<\/h2><p>\u4ed4\u7ec6\u9605\u8bfb\u6587\u4ef6 <code data-no-translation=\"\">.htaccess<\/code> \u548c <code data-no-translation=\"\">wp-config.php<\/code>:<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">cat \/home\/yourdomain.com\/public_html\/.htaccess\ncat \/home\/yourdomain.com\/public_html\/wp-config.php | grep -v \"^\\s*\/\/\" | grep -v \"^\\s*\\$\"<\/code><\/pre><p>\u4ed4\u7ec6\u68c0\u67e5 `.htaccess` \u4e2d\u662f\u5426\u5b58\u5728\u5f02\u5e38\u7684\u91cd\u5b9a\u5411\u89c4\u5219\u3002\u540c\u65f6\uff0c\u7ecf\u5ba1\u67e5 `wp-config.php` \u6587\u4ef6\uff0c\u6211\u4eec\u53d1\u73b0 2 \u4e2a\u9700\u8981\u7acb\u5373\u5904\u7406\u7684\u4e25\u91cd\u5b89\u5168\u6f0f\u6d1e\uff1a<\/p><h3>1. \u5b89\u5168\u5bc6\u94a5\uff08Salts key\uff09\u672a\u8bbe\u7f6e<\/h3><p>\u7528\u4e8e\u52a0\u5bc6\u767b\u5f55 Cookie \u7684\u5bc6\u94a5\u4ecd\u4fdd\u7559 WordPress \u7684\u9ed8\u8ba4\u503c\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">define( 'AUTH_KEY',         'put your unique phrase here' );\ndefine( 'SECURE_AUTH_KEY',  'put your unique phrase here' );\n...<\/code><\/pre><p>\u8bf7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u4ece WordPress.org \u83b7\u53d6\u4e00\u7ec4\u65b0\u7684\u968f\u673a\u5bc6\u94a5\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">curl -s https:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/<\/code><\/pre><p>\u6216\u8005\u4f7f\u7528 WP-CLI \u81ea\u52a8\u8f6e\u6362 Salts \u5bc6\u94a5\uff08\u6b64\u64cd\u4f5c\u4f1a\u5f3a\u5236\u6240\u6709\u5df2\u767b\u5f55\u8d26\u6237\uff0c\u5305\u62ec\u9ed1\u5ba2\uff0c\u7acb\u5373\u9000\u51fa\u767b\u5f55\uff09\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">wp config shuffle-salts --allow-root --path=\/home\/yourdomain.com\/public_html<\/code><\/pre><h3>2. \u6570\u636e\u5e93\u5bc6\u7801\u6cc4\u9732\u6216\u8fc7\u4e8e\u8584\u5f31<\/h3><p>\u5982\u679c\u6570\u636e\u5e93\u8fde\u63a5\u5bc6\u7801\u5728\u65e5\u5fd7\u4e2d\u6cc4\u9732\u6216\u8fc7\u4e8e\u7b80\u5355\uff0c\u8bf7\u7acb\u5373\u5728 MySQL \u63a7\u5236\u53f0\u4e2d\u66f4\u6539\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\"># Truy c\u1eadp MySQL Console\nmysql -u root -p\n\n# Thay \u0111\u1ed5i m\u1eadt kh\u1ea9u cho user k\u1ebft n\u1ed1i database\nALTER USER 'yourdomain_wp_user'@'localhost' IDENTIFIED BY 'mat_khau_moi_sieu_manh';\nFLUSH PRIVILEGES;\nEXIT;<\/code><\/pre><p>\u968f\u540e\uff0c\u5c06\u6b64\u65b0\u5bc6\u7801\u66f4\u65b0\u5230\u6b64\u884c\u4e2d <code data-no-translation=\"\">DB_PASSWORD<\/code> \u5728\u6587\u4ef6\u4e2d <code data-no-translation=\"\">wp-config.php<\/code>.<\/p><h2>\u7b2c 6 \u6b65\uff1a\u7528\u5e72\u51c0\u7684\u7248\u672c\u66ff\u6362\u5168\u90e8 Core \u6e90\u4ee3\u7801<\/h2><p>\u4e3a\u786e\u4fdd\u6ca1\u6709\u4efb\u4f55\u7cfb\u7edf\u6587\u4ef6\u88ab\u9ed1\u5ba2\u6697\u4e2d\u4fee\u6539\uff0c\u8bf7\u4ece WordPress \u5b98\u65b9\u6765\u6e90\u8986\u76d6\u5199\u5165\u5e72\u51c0\u7684 core\uff08\u8df3\u8fc7 wp-content \u76ee\u5f55\uff09\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">cd \/tmp\nwget https:\/\/downloads.wordpress.org\/release\/wordpress-7.0.2-no-content.zip\nunzip wordpress-7.0.2-no-content.zip\n\n# Sao l\u01b0u wp-admin v\u00e0 wp-includes c\u0169 \u0111\u1ec3 d\u1ef1 ph\u00f2ng\ncp -r \/home\/yourdomain.com\/public_html\/wp-admin \/home\/yourdomain.com\/wp-admin-backup-\\\\$(date +%Y%m%d)\ncp -r \/home\/yourdomain.com\/public_html\/wp-includes \/home\/yourdomain.com\/wp-includes-backup-\\\\$(date +%Y%m%d)\n\n# S\u1eed d\u1ee5ng rsync ghi \u0111\u00e8 core s\u1ea1ch\nrsync -av --exclude='wp-content' \/tmp\/wordpress\/ \/home\/yourdomain.com\/public_html\/<\/code><\/pre><h2>\u6b65\u9aa4 7\uff1a\u91cd\u7f6e\u771f\u5b9e Admin \u8d26\u6237\u7684\u5bc6\u7801<\/h2><p>\u66f4\u6539\u7cfb\u7edf\u4e2d\u6240\u6709\u5b9e\u9645\u7ba1\u7406\u5458\u8d26\u6237\u7684\u5bc6\u7801\uff08\u4f8b\u5982\u8d26\u6237 <code data-no-translation=\"\">admindps<\/code> \u53ca\u5176\u4ed6\u7ba1\u7406\u5458\uff09\u901a\u8fc7 WP-CLI\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">wp user update admindps --user_pass=\"MatKhauMoiSieuCapBaoMat@2026\" --allow-root --path=\/home\/yourdomain.com\/public_html<\/code><\/pre><h2>\u7b2c 8 \u6b65\uff1a\u963b\u6b62\u5728 Uploads \u76ee\u5f55\u4e2d\u6267\u884c PHP \u6587\u4ef6<\/h2><p>\u8fd9\u662f\u5fc5\u987b\u6267\u884c\u7684\u5b89\u5168\u52a0\u56fa\u64cd\u4f5c\u3002\u9ed1\u5ba2\u5e38\u5229\u7528\u4e0a\u4f20\u6f0f\u6d1e\uff0c\u5c06\u4f2a\u88c5\u6210 `.png.php` \u7b49\u6269\u5c55\u540d\u7684 webshell \u4e0a\u4f20\u5230 uploads \u76ee\u5f55\u3002\u8bf7\u521b\u5efa\u6587\u4ef6 <code data-no-translation=\"\">.htaccess<\/code> \u4f4d\u4e8e\u76ee\u5f55 <code data-no-translation=\"\">wp-content\/uploads\/<\/code> \u5305\u542b\u963b\u6b62\u6267\u884c PHP \u7684\u5185\u5bb9\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">&lt;Files *.php&gt;\n    deny from all\n&lt;\/Files&gt;<\/code><\/pre><h2>\u7b2c 9 \u6b65\uff1a\u6700\u540e\u518d\u6b21\u626b\u63cf\u7cfb\u7edf\uff0c\u786e\u8ba4\u5df2\u6e05\u9664\u5e72\u51c0<\/h2><p>\u91cd\u65b0\u8fd0\u884c\u5168\u9762\u626b\u63cf\u547d\u4ee4\uff0c\u786e\u4fdd\u4e0d\u518d\u6b8b\u7559\u4efb\u4f55\u5a01\u80c1\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">wordfence malware-scan --include-all-files --output-path=\/home\/yourdomain.com\/public_html\/wordfence-scan-final.log \/home\/yourdomain.com\/public_html\/<\/code><\/pre><p>\u5f53\u7ed3\u679c\u5b8c\u5168\u5e72\u51c0\u540e\uff0c\u5173\u95ed\u7ef4\u62a4\u6a21\u5f0f\uff1a<\/p><pre data-no-translation=\"\"><code data-no-translation=\"\">wp maintenance-mode deactivate --allow-root --path=\/home\/yourdomain.com\/public_html<\/code><\/pre><h2>\u7b2c 10 \u6b65\uff1a\u6587\u4ef6\u6743\u9650\u8bbe\u7f6e\u4e0e\u6301\u7eed\u76d1\u63a7<\/h2><p>\u5c06\u76ee\u5f55\u6743\u9650\u8bbe\u7f6e\u4e3a <code data-no-translation=\"\">755<\/code>, \u6587\u4ef6\u662f <code data-no-translation=\"\">644<\/code>, \u548c\u6587\u4ef6 <code data-no-translation=\"\">wp-config.php<\/code> \u5df2\u4e0e\u4f17\u591a\u4e2d\u5c0f\u4f01\u4e1a\uff08SMEs\uff09\u643a\u624b\uff0c\u4e3a\u6bcf\u4e2a\u884c\u4e1a\u786e\u5b9a\u6700\u5408\u9002\u7684\u5a92\u4f53\u6e20\u9053\u3002\u4e0e\u5176\u5c06\u9884\u7b97\u5206\u6563\u5230\u8fc7\u591a\u5e73\u53f0\uff0c\u6210\u529f\u7684\u9879\u76ee\u5747\u96c6\u4e2d\u4e8e\u6548\u679c\u6700\u4f73\u7684\u6e20\u9053\uff0c\u5982 Facebook Ads\u3001Google Search \u6216 TikTok\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5b9e\u8df5\u7ecf\u9a8c\uff1a <code data-no-translation=\"\">400<\/code> \u6216\u8005 <code data-no-translation=\"\">600<\/code> \u4ee5\u9632\u6b62\u5bf9\u914d\u7f6e\u6587\u4ef6\u7684\u4fee\u6539\u3002<\/p><h2>\u501f\u52a9 DPS.MEDIA \u4e13\u4e1a\u670d\u52a1\u4f18\u5316\u7f51\u7ad9\u5b89\u5168<\/h2><p>\u6e05\u9664\u6076\u610f\u4ee3\u7801\u53ea\u80fd\u89e3\u51b3\u8868\u5c42\u95ee\u9898\u3002\u5173\u952e\u5728\u4e8e\u5fc5\u987b\u901a\u8fc7\u5206\u6790 Web \u670d\u52a1\u5668\u5728\u540e\u95e8\u6587\u4ef6\u521b\u5efa\u65f6\u7684 Access Log\uff0c\u627e\u51fa\u6700\u521d\u7684\u5b89\u5168\u6f0f\u6d1e\u5e76\u4e88\u4ee5\u4fee\u8865\uff0c\u9632\u6b62\u9ed1\u5ba2\u65e5\u540e\u518d\u6b21\u5165\u4fb5\u3002<\/p><p>\u60a8\u5e94\u5f53\u901a\u8fc7\u4ee5\u4e0b\u9014\u5f84\u4e86\u89e3\u5b98\u65b9\u5b89\u5168\u6807\u51c6\uff1a <a href=\"https:\/\/wordpress.org\/support\/article\/hardening-wordpress\/\" rel=\"nofollow noopener\" target=\"_blank\">\u5b98\u65b9 WordPress \u52a0\u56fa\u6587\u6863<\/a> \u4ee5\u63d0\u5347\u7cfb\u7edf\u5b89\u5168\u6027\u3002<\/p><p>\u5982\u679c\u60a8\u5728\u6e05\u9664\u6076\u610f\u4ee3\u7801\u65b9\u9762\u9047\u5230\u56f0\u96be\uff0c\u6216\u5e0c\u671b\u5168\u9762\u52a0\u56fa\u7f51\u7ad9\u5b89\u5168\u7cfb\u7edf\uff0c\u8bf7\u7acb\u5373\u901a\u8fc7\u70ed\u7ebf\/Zalo \u8054\u7cfb DPS.MEDIA\uff1a <strong>0961545445<\/strong> \u6216\u5230\u8bbf\u529e\u516c\u5ba4\uff0c\u95e8\u724c\u53f7\u4e3a <strong>56 Nguy\u1ec5n \u0110\u00ecnh Chi\u1ec3u\uff0cT\u00e2n \u0110\u1ecbnh\u574a\uff0c\u7b2c1\u90e1\uff0c\u80e1\u5fd7\u660e\u5e02<\/strong>\u3002\u6211\u4eec\u63d0\u4f9b <a href=\"https:\/\/dps.media\/zh\/\">\u4e13\u4e1a\u7684 WordPress \u7f51\u7ad9\u8bbe\u8ba1\u670d\u52a1<\/a> \u7b26\u5408 SEO \u6807\u51c6\uff0c\u96c6\u6210\u591a\u5c42\u81ea\u52a8\u5b89\u5168\u9632\u62a4\u548c\u6bcf\u65e5\u5b89\u5168\u5907\u4efd\u6a21\u5f0f\uff0c\u52a9\u60a8\u653e\u5fc3\u7ecf\u8425\u3001\u5b9e\u73b0\u4f01\u4e1a\u53ef\u6301\u7eed\u53d1\u5c55\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>WordPress \u7f51\u7ad9\u88ab\u9ed1\u540e\u7684\u8be6\u7ec6\u5904\u7406\u6d41\u7a0b\u6307\u5357\uff0c\u6e05\u7406 fake plugin wordpress-cache-optimizer.php\u3001wp-content-filter.php\u3001mu-plugin wp-fixplugin.php\uff0c\u5e76\u4fee\u590d Salts key \u6f0f\u6d1e\u3002.<\/p>","protected":false},"author":0,"featured_media":39996,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"rs_blank_template":"","rs_page_bg_color":"","slide_template_v7":"","footnotes":""},"categories":[2037,2288,1204],"tags":[],"class_list":["post-39989","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bao-mat-website","category-thu-thuat-wordpress","category-wordpress-marketing"],"acf":[],"rankmath_keywords":{"primary":"x\u1eed l\u00fd wordpress b\u1ecb hack, wordpress b\u1ecb hack, c\u00e1ch x\u1eed l\u00fd wordpress b\u1ecb hack","secondary":["wordpress b\u1ecb hack","c\u00e1ch x\u1eed l\u00fd wordpress b\u1ecb hack"]},"yoast_keywords":{"primary":"","secondary":[]},"yoast_focuskw":"","rankmath_focuskw":"x\u1eed l\u00fd wordpress b\u1ecb hack, wordpress b\u1ecb hack, c\u00e1ch x\u1eed l\u00fd wordpress b\u1ecb hack","seo_keywords":{"primary":"x\u1eed l\u00fd wordpress b\u1ecb hack, wordpress b\u1ecb hack, c\u00e1ch x\u1eed l\u00fd wordpress b\u1ecb hack","secondary":["wordpress b\u1ecb hack","c\u00e1ch x\u1eed l\u00fd wordpress b\u1ecb hack"]},"_links":{"self":[{"href":"https:\/\/dps.media\/zh\/wp-json\/wp\/v2\/posts\/39989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dps.media\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dps.media\/zh\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/dps.media\/zh\/wp-json\/wp\/v2\/comments?post=39989"}],"version-history":[{"count":0,"href":"https:\/\/dps.media\/zh\/wp-json\/wp\/v2\/posts\/39989\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dps.media\/zh\/wp-json\/wp\/v2\/media\/39996"}],"wp:attachment":[{"href":"https:\/\/dps.media\/zh\/wp-json\/wp\/v2\/media?parent=39989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dps.media\/zh\/wp-json\/wp\/v2\/categories?post=39989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dps.media\/zh\/wp-json\/wp\/v2\/tags?post=39989"}],"curies":[{"name":"\u4f18\u5316\u56fe\u50cf\uff0c\u6253\u9020\u4e13\u4e1a\u8bbe\u8ba1","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}