{"id":467,"date":"2016-08-30T10:00:28","date_gmt":"2016-08-30T02:00:28","guid":{"rendered":"http:\/\/188.131.173.16\/?p=467"},"modified":"2016-08-30T10:00:28","modified_gmt":"2016-08-30T02:00:28","slug":"wordpress%e8%a2%ab%e5%8f%82%e4%b8%8eddos%e6%94%bb%e5%87%bb","status":"publish","type":"post","link":"https:\/\/li-yang.cn\/?p=467","title":{"rendered":"wordpress\u88ab\u53c2\u4e0eDDOS\u653b\u51fb"},"content":{"rendered":"<p>\u6211\u7684wordpress\u535a\u5ba2\u7cfb\u7edf\u8fd0\u884c\u5728\u4e00\u53f0VPS\u4e0a\uff0c\u6628\u5929\u4eca\u5929\u65e9\u4e0a\u7a81\u7136\u6536\u5230\u4e86\u7f51\u7ad9\u5b95\u673a\u7684\u63d0\u9192\u3002\u4e8e\u662f\uff0c\u6709\u4e86\u4e0b\u9762\u7684\u7ecf\u5386\u2026<br \/>\n<!--more--><\/p>\n<p style=\"text-align:center;\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.3001.net\/images\/20160828\/14723138336679.jpg!small\" alt=\"QQ\u622a\u56fe20160828000331.jpg\" width=\"370\" height=\"147\" \/><\/p>\n<p><b>\u5206\u6790<\/b><br \/>\n\u7531\u4e8e\u6211\u7684VPS\u53ea\u5bf9\u5916\u8fd0\u884c\u4e86HTTP\u670d\u52a1\uff0c\u6240\u4ee5\u91cd\u542f\u673a\u5668\u540e\u7b2c\u4e00\u65f6\u95f4\u67e5\u770b\u4e86apache\u7684access\u65e5\u5fd7\uff0c\u53d1\u73b0\u65e5\u5fd7\u4e2d\u5b58\u5728\u4e0a\u4e07\u6761\u5bf9\u4e8exmlrpc.php\u6587\u4ef6\u7684post\u8bf7\u6c42\uff0c\u5e76\u4e14\u8bf7\u6c42\u6765\u81ea\u4e24\u4e2a\u56fd\u5916\u7684IP\u3002<\/p>\n<pre><code>24019 191.96.249.53 - - [26\/Aug\/2016:08:21:57 +0800] \"POST \/xmlrpc.php HTTP\/1.0\" 200 579 \"-\" \"Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)\"\n24020 191.96.249.54 - - [26\/Aug\/2016:08:21:58 +0800] \"POST \/xmlrpc.php HTTP\/1.0\" 200 579 \"-\" \"Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)\"\n24021 191.96.249.54 - - [26\/Aug\/2016:08:21:59 +0800] \"POST \/xmlrpc.php HTTP\/1.0\" 200 579 \"-\" \"Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)\"\n24022 191.96.249.53 - - [26\/Aug\/2016:08:22:00 +0800] \"POST \/xmlrpc.php HTTP\/1.0\" 200 579 \"-\" \"Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)\"\n24023 191.96.249.54 - - [26\/Aug\/2016:08:22:00 +0800] \"POST \/xmlrpc.php HTTP\/1.0\" 200 579 \"-\" \"Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)\"\n24024 191.96.249.54 - - [26\/Aug\/2016:08:22:03 +0800] \"POST \/xmlrpc.php HTTP\/1.0\" 200 579 \"-\" \"Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)\"\n24025 191.96.249.53 - - [26\/Aug\/2016:08:22:04 +0800] \"POST \/xmlrpc.php HTTP\/1.0\" 200 579 \"-\" \"Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)\"\n24026 191.96.249.53 - - [26\/Aug\/2016:08:22:10 +0800] \"POST \/xmlrpc.php HTTP\/1.0\" 200 579 \"-\" \"Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)\"\n24027 191.96.249.53 - - [26\/Aug\/2016:08:22:15 +0800] \"POST \/xmlrpc.php HTTP\/1.0\" 200 579 \"-\" \"Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)\"\n\u2026\u2026\n<\/code><\/pre>\n<p>\u7b2c\u4e00\u53cd\u5e94\u662f\u6211\u7684\u535a\u5ba2\u88abDOS\u653b\u51fb\u4e86\uff0c\u653b\u51fb\u8005\u5bf9xmlrpc.php\u7684\u8bbf\u95ee\u4ea7\u751f\u4e86\u5927\u91cf\u7684\u8fd0\u7b97\uff0c\u8017\u5c3d\u4e86\u8ba1\u7b97\u673a\u7684\u8d44\u6e90\u3002\u6bd5\u7adf\u6211\u535a\u5ba2\u6240\u5728\u7684VPS\u7684\u6027\u80fd\u5f88\u5dee\uff0c\u5b95\u673a\u4e5f\u5f88\u6b63\u5e38\u3002\u7531\u4e8e\u6211\u7684wordpress\u6ca1\u6709\u4f7f\u7528\u5230xmlrpc.php\u7684\u529f\u80fd\uff0c\u6240\u4ee5\u987a\u624b\u628a\u5b83\u5220\u9664\uff0c\u81ea\u4ee5\u4e3a\u5927\u529f\u544a\u6210\u3002<br \/>\n\u665a\u4e0a\u518d\u6b21\u67e5\u770b\u670d\u52a1\u5668\u72b6\u6001\uff0c\u53d1\u73b0\u4ecd\u6709\u4e0a\u767e\u7684\u7f51\u7edc\u8fde\u63a5\u6570\u3002\u6b64\u65f6\u518d\u6b21\u67e5\u770baccess\u65e5\u5fd7\uff0c\u4e4b\u524d\u7684\u4e24\u4e2aIP\u4ecd\u5bf9xmlrpc.php\u4ea7\u751f\u7740\u5927\u91cf\u7684\u8bf7\u6c42\u3002\u6b64\u65f6\uff0c\u5bf9\u653b\u51fb\u8005\u7684\u8bf7\u6c42\u5185\u5bb9\u5f00\u59cb\u4ea7\u751f\u4e86\u597d\u5947\u5fc3\u3002<br \/>\n\u5728VPS\u4e0a\u4f7f\u7528tcpdump\u6293\u53d680\u7aef\u53e3\u7684\u6570\u636e\uff0c\u624d\u53d1\u73b0\u539f\u6765\u653b\u51fb\u8005\u4e00\u76f4\u5728\u7528\u6211\u7684VPS\u505a\u8089\u9e21\uff0c\u5bf9\u5176\u4ed6\u7f51\u7ad9\u8fdb\u884c\u653b\u51fb\u3002POST\u6570\u636e\u5305\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p style=\"text-align:center;\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.3001.net\/images\/20160828\/14723154543593.jpg!small\" alt=\"QQ\u622a\u56fe20160828002412.jpg\" width=\"560\" height=\"206\" \/><\/p>\n<p>\u4ece\u4e4b\u524d\u7684\u597d\u5947\u5fc3\u4e2d\u8df3\u51fa\u6765\uff0c\u604d\u7136\u5927\u609f\uff0c\u539f\u6765\u653b\u51fb\u8005\u5728\u5229\u7528wordpress\u7684pingback\u529f\u80fd\u7684ping\u65b9\u6cd5\u5bf9<a href=\"http:\/\/www.bagamez.com\/\">http:\/\/www.bagamez.com\/<\/a>\u53d1\u8d77\u4e86ICMP FLOOD\u653b\u51fb\u3002<br \/>\n<b>\u5982\u4f55\u89e3\u51b3\u95ee\u9898\uff1f<\/b><br \/>\n<span style=\"font-size:10.5pt;\">\u25c6<\/span>\u5173\u95edwordpress\u540e\u53f0\u7684\u201c\u5c1d\u8bd5\u901a\u77e5\u6587\u7ae0\u4e2d\u94fe\u63a5\u7684\u535a\u5ba2\u201d\u548c\u201c<i>\u5141\u8bb8\u5176\u4ed6\u535a\u5ba2\u53d1\u9001\u94fe\u63a5\u901a\u77e5\uff08pingback\u548ctrackback\uff09\u5230\u65b0\u6587\u7ae0<\/i>\u201d\u529f\u80fd\u3002<\/p>\n<p style=\"text-align:center;\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.3001.net\/images\/20160828\/14723167015630.jpg!small\" alt=\"QQ\u622a\u56fe20160828005126.jpg\" width=\"690\" height=\"456\" \/><\/p>\n<p><span style=\"font-size:10.5pt;\">\u25c6<\/span>\u82e5wordpress\u7ad9\u70b9\u672a\u4f7f\u7528\u5230\u7684xmlrpc.php\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u76f4\u63a5\u5c06\u5176\u91cd\u547d\u540d\u6216\u5220\u9664\u3002<br \/>\n<span style=\"font-size:14px;\">\u25c6Linux\u73af\u5883\u4e0b\u53ef\u4ee5<\/span>\u5c06\u653b\u51fb\u8005\u7684IP\u4f7f\u7528iptables\u505a\u8bbf\u95ee\u9650\u5236\u3002<\/p>\n<pre><code>iptables -I INPUT -s IP -j DROP<\/code><\/pre>\n<p>\u81f3\u6b64\uff0c\u6211\u7684wordpress\u4e0d\u518d\u88ab\u52a8\u53c2\u4e0eDDOS\u653b\u51fb\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u7684wordpress\u535a\u5ba2\u7cfb\u7edf\u8fd0\u884c\u5728\u4e00\u53f0VPS\u4e0a\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[13,32,12],"class_list":["post-467","post","type-post","status-publish","format-standard","hentry","category-4","tag-ddos","tag-wordpress","tag-12"],"_links":{"self":[{"href":"https:\/\/li-yang.cn\/index.php?rest_route=\/wp\/v2\/posts\/467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/li-yang.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/li-yang.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/li-yang.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/li-yang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=467"}],"version-history":[{"count":0,"href":"https:\/\/li-yang.cn\/index.php?rest_route=\/wp\/v2\/posts\/467\/revisions"}],"wp:attachment":[{"href":"https:\/\/li-yang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/li-yang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/li-yang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}