{"id":1681,"date":"2018-11-06T21:02:41","date_gmt":"2018-11-06T13:02:41","guid":{"rendered":"http:\/\/blog.notes4it.com\/?p=1681"},"modified":"2018-11-06T21:02:41","modified_gmt":"2018-11-06T13:02:41","slug":"hping3-linux%e7%9a%84%e4%bb%bf%e7%9c%9f%e6%95%b8%e6%93%9a%e5%8c%85%e6%b3%9b%e6%b4%aa%e6%94%bb%e6%93%8a","status":"publish","type":"post","link":"http:\/\/notes4it.com\/?p=1681","title":{"rendered":"Hping3  &#8211;  Linux\u7684\u4eff\u771f\u6578\u64da\u5305\u6cdb\u6d2a\u653b\u64ca"},"content":{"rendered":"<p>\u5728\u91dd\u5c0d\u9632\u706b\u7246\u5c0dDoS\u548c\u6703\u8a71\u9650\u5236\u80fd\u529b\u6e2c\u8a66\u6642\uff0cLinux \u4e2d\u6709\u4e00\u500b\u540d\u70bahping3\u7684\u7a0b\u5e8f\u53ef\u4ee5\u7522\u751f\u4eff\u771f\u6578\u64da\u5305\u6cdb\u6d2a\u653b\u64ca\u3002\u5b83\u53ef\u4ee5\u7522\u751f\u5c11\u91cf\u7684\u6578\u64da\u5305\u6c3e\u6feb\uff0c\u540c\u6642\u4ecd\u7136\u4fdd\u6301\u81f3\u5c1150\uff05\u7684CPU\u53ef\u7528\u65bc\u7ba1\u7406\u3002<\/p>\n<p>\u5982\u679c\u6211\u5011\u9700\u8981\u6e2c\u8a66SYNC\u6cdb\u6d2a\u7684\u6703\u8a71\u9650\u88fd\u6216\u95be\u503c\u9650\u88fd\u5230Web\u670d\u52d9\u5668\u7aef\u53e380\uff0c\u6211\u5011\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u3002<br \/>\n<a href=\"https:\/\/blog.notes4it.com\/wp-content\/uploads\/2018\/04\/hping3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1565\" src=\"https:\/\/blog.notes4it.com\/wp-content\/uploads\/2018\/04\/hping3.png\" alt=\"\" width=\"700\" height=\"130\" srcset=\"http:\/\/notes4it.com\/wp-content\/uploads\/2018\/04\/hping3.png 1072w, http:\/\/notes4it.com\/wp-content\/uploads\/2018\/04\/hping3-300x56.png 300w, http:\/\/notes4it.com\/wp-content\/uploads\/2018\/04\/hping3-1024x190.png 1024w, http:\/\/notes4it.com\/wp-content\/uploads\/2018\/04\/hping3-768x143.png 768w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><br \/>\n<!--more--><br \/>\n# hping3 -i u1 -S -p 80 172.16.1.5<br \/>\n-S &#8211; \u4f7f\u7528SYN\u6a19\u8a8c<br \/>\n-p 80 &#8211; \u76ee\u6a19\u7aef\u53e380<br \/>\n-i u1 &#8211; \u6bcf\u500b\u6578\u64da\u5305\u4e4b\u9593\u7b49\u5f851\u5fae\u79d2<br \/>\n\u6839\u64da\u4e0b\u9762\u7684\u7d50\u679c\uff0c\u6211\u5011\u53ef\u4ee5\u770b\u5230hping3\u751f\u6210TCP\u985e\u578b\u7684\u6578\u64da\u5305\uff0c\u4e26\u5c07\u6d41\u91cf\u4f5c\u70ba\u76ee\u7684\u5730\u767c\u9001\u5230172.16.1.5\u7684\u7aef\u53e380\u3002\u60a8\u4e5f\u53ef\u4ee5\u95dc\u6ce8\u6642\u9593\u7bc4\u570d\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td>21:28:02.108024 IP (tos 0x0, ttl 64, id 30525, offset 0, flags [none], proto TCP (6), length 40)<br \/>\n172.16.2.18.15513 &gt; 172.16.1.5.80: Flags [S], cksum 0x9967 (correct), seq 652361374, win 512, length 0<br \/>\n21:28:02.108067 IP (tos 0x0, ttl 64, id 15118, offset 0, flags [none], proto TCP (6), length 40)<br \/>\n172.16.2.18.15514 &gt; 172.16.1.5.80: Flags [S], cksum 0x7024 (correct), seq 1361228312, win 512, length 0<br \/>\n21:28:02.108123 IP (tos 0x0, ttl 64, id 61360, offset 0, flags [none], proto TCP (6), length 40)<br \/>\n172.16.2.18.15515 &gt; 172.16.1.5.80: Flags [S], cksum 0x471a (correct), seq 651571276, win 512, length 0<br \/>\n21:28:02.108180 IP (tos 0x0, ttl 64, id 10258, offset 0, flags [none], proto TCP (6), length 40)<br \/>\n172.16.2.18.15516 &gt; 172.16.1.5.80: Flags [S], cksum 0x6af3 (correct), seq 954783411, win 512, length 0<br \/>\n21:28:02.108235 IP (tos 0x0, ttl 64, id 20246, offset 0, flags [none], proto TCP (6), length 40)<br \/>\n172.16.2.18.15517 &gt; 172.16.1.5.80: Flags [S], cksum 0xae73 (correct), seq 254599339, win 512, length 0<br \/>\n21:28:02.108298 IP (tos 0x0, ttl 64, id 48823, offset 0, flags [none], proto TCP (6), length 40)<br \/>\n172.16.2.18.15518 &gt; 172.16.1.5.80: Flags [S], cksum 0xbdc9 (correct), seq 1616407911, win 512, length 0<br \/>\n21:28:02.108375 IP (tos 0x0, ttl 64, id 11273, offset 0, flags [none], proto TCP (6), length 40)<br \/>\n^C 172.16.2.18.15519 &gt; 172.16.1.5.80: Flags [S], cksum 0x1cf2 (correct), seq 1226450215, win 512, length 0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f46\u662f\u5982\u679c\u6211\u5011\u60f3\u7528\u53e6\u4e00\u500b\u5730\u5740\u70ba\u6e90\u5730\u5740\uff0c\u90a3\u9ebc\u6211\u5011\u53ef\u4ee5\u4f7f\u7528\u201c-a\u201d\u7684\u53c3\u6578\u3002\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\uff0c\u5b83\u5c07\u4ee3\u8868172.16.9.9\u5c07\u6578\u64da\u5305\u767c\u9001\u5230172.16.1.5\u3002<br \/>\n# hping3 -i u1 -S -p 80 172.16.1.5 -a 172.16.9.9<br \/>\n-a &#8211; \u4fee\u6539\u6578\u64da\u5305\u7684\u6e90\u5730\u5740<\/p>\n<table>\n<tbody>\n<tr>\n<td>21:33:07.911051 IP (tos 0x0, ttl 64, id 3061, offset 0, flags [none], proto TCP (6), length 40)<br \/>\n<span style=\"color: #ff0000;\">172.16.9.9<\/span>.2349 &gt; 172.16.1.5.80: Flags [S], cksum 0xde0b (correct), seq 1951941470, win 512, length 0<br \/>\n21:33:07.911124 IP (tos 0x0, ttl 64, id 21261, offset 0, flags [none], proto TCP (6), length 40)<br \/>\n<span style=\"color: #ff0000;\">172.16.9.9<\/span>.2350 &gt; 172.16.1.5.80: Flags [S], cksum 0xc771 (correct), seq 1069435591, win 512, length 0<br \/>\n21:33:07.911200 IP (tos 0x0, ttl 64, id 55266, offset 0, flags [none], proto TCP (6), length 40)<br \/>\n<span style=\"color: #ff0000;\">172.16.9.9<\/span>.2351 &gt; 172.16.1.5.80: Flags [S], cksum 0x6e94 (correct), seq 1019611718, win 512, length 0<br \/>\n21:33:07.911268 IP (tos 0x0, ttl 64, id 32557, offset 0, flags [none], proto TCP (6), length 40)<br \/>\n<span style=\"color: #ff0000;\">172.16.9.9<\/span>.2352 &gt; 172.16.1.5.80: Flags [S], cksum 0x8b5d (correct), seq 1332710561, win 512, length 0<br \/>\n21:33:07.911379 IP (tos 0x0, ttl 64, id 47624, offset 0, flags [none], proto TCP (6), length 40)<br \/>\n172.16.9.9.2354 &gt; 172.16.1.5.80: Flags [S], cksum 0x624f (correct), seq 1886164219, win 512, length 0<br \/>\n21:33:07.911636 IP (tos 0x0, ttl 64, id 59607, offset 0, flags [none], proto TCP (6), length 40)<br \/>\n172.16.9.9.2358 &gt; 172.16.1.5.80: Flags [S], cksum 0x17a6 (correct), seq 882958296, win 512, length 0<br \/>\n21:33:07.911851 IP (tos 0x0, ttl 64, id 38747, offset 0, flags [none], proto TCP (6), length 40)<br \/>\n172.16.9.9.2362 &gt; 172.16.1.5.80: Flags [S], cksum 0xbb26 (correct), seq 604202905, win 512, length 0<br \/>\n21:33:07.912016 IP (tos 0x0, ttl 64, id 6476, offset 0, flags [none], proto TCP (6), length 40)<br \/>\n172.16.9.9.2365 &gt; 172.16.1.5.80: Flags [S], cksum 0xd48a (correct), seq 1798537797, win 512, length 0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Hping3\u5177\u6709\u66f4\u591a\u5148\u9032\u7684\u5305\u88fd\u4f5c\u529f\u80fd\u3002\u6211\u5e0c\u671b\u4e0a\u9762\u7684\u4fe1\u606f\u53ef\u4ee5\u8b93\u60a8\u5927\u81f4\u4e86\u89e3\u6211\u5011\u5982\u4f55\u4f7f\u7528hping3\u4f86\u6e2c\u8a66\u60a8\u7684\u74b0\u5883\u6216\u9632\u706b\u7246\u8a2d\u7f6e\u3002\u6211\u5c07\u5728\u672a\u4f86\u5206\u4eab\u66f4\u591a\u5148\u9032\u6216\u5176\u4ed6\u529f\u80fd\u3002<br \/>\n!!!!\u8acb\u52ff\u5728\u672a\u7d93\u8a31\u53ef\u7684\u60c5\u6cc1\u4e0b\u9032\u884chping\u6e2c\u8a66\u3002!!!!<br \/>\n!!!!\u6b64\u5916\uff0c\u4e0d\u8981\u5728\u4efb\u4f55NAT\u8a2d\u5099\u5f8c\u9762\u57f7\u884c\u5730\u5740\u6b3a\u9a19\uff0c\u56e0\u70ba\u6578\u64da\u5305\u7684\u6e90\u5730\u5740\u5c07\u4f7f\u7528\u60a8\u7684\u516c\u5171IP\u5730\u5740\u7684\u3002!!!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u91dd\u5c0d\u9632\u706b\u7246\u5c0dDoS\u548c\u6703\u8a71\u9650\u5236\u80fd\u529b\u6e2c\u8a66\u6642\uff0cLinux \u4e2d\u6709\u4e00\u500b\u540d\u70bahping3\u7684\u7a0b\u5e8f\u53ef\u4ee5\u7522\u751f\u4eff\u771f\u6578\u64da\u5305\u6cdb\u6d2a\u653b\u64ca\u3002\u5b83\u53ef\u4ee5\u7522\u751f\u5c11\u91cf\u7684\u6578\u64da\u5305\u6c3e\u6feb\uff0c\u540c\u6642\u4ecd\u7136\u4fdd\u6301\u81f3\u5c1150\uff05\u7684CPU\u53ef\u7528\u65bc\u7ba1\u7406\u3002 \u5982\u679c\u6211\u5011\u9700\u8981\u6e2c\u8a66SYNC\u6cdb\u6d2a\u7684\u6703\u8a71\u9650\u88fd\u6216\u95be\u503c\u9650\u88fd\u5230Web\u670d\u52d9\u5668\u7aef\u53e380\uff0c\u6211\u5011\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u3002<\/p>\n","protected":false},"author":1,"featured_media":1565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[39,63,104],"class_list":["post-1681","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-networking","tag-dos-en","tag-hping3-en","tag-linux-en"],"_links":{"self":[{"href":"http:\/\/notes4it.com\/index.php?rest_route=\/wp\/v2\/posts\/1681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/notes4it.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/notes4it.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/notes4it.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/notes4it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1681"}],"version-history":[{"count":0,"href":"http:\/\/notes4it.com\/index.php?rest_route=\/wp\/v2\/posts\/1681\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/notes4it.com\/index.php?rest_route=\/wp\/v2\/media\/1565"}],"wp:attachment":[{"href":"http:\/\/notes4it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/notes4it.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1681"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/notes4it.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}