{"id":3187,"date":"2019-06-24T09:51:01","date_gmt":"2019-06-24T01:51:01","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3187"},"modified":"2019-06-25T19:51:29","modified_gmt":"2019-06-25T11:51:29","slug":"hping3","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/hping3","title":{"rendered":"hping3\u547d\u4ee4 – \u6d4b\u8bd5\u7f51\u7edc\u53ca\u4e3b\u673a\u7684\u5b89\u5168"},"content":{"rendered":"\n

hping3\u547d\u4ee4\u662f\u7528\u4e8e\u751f\u6210\u548c\u89e3\u6790TCPIP\u534f\u8bae\u6570\u636e\u5305\u7684\u5f00\u6e90\u5de5\u5177\uff0c\u4e5f\u662f\u5b89\u5168\u5ba1\u8ba1\u3001\u9632\u706b\u5899\u6d4b\u8bd5\u7b49\u5de5\u4f5c\u7684\u6807\u914d\u5de5\u5177 \u3002<\/p>\n\n\n\n

\u76ee\u524d\u6700\u65b0\u7248\u662fhping3\uff0c\u652f\u6301\u4f7f\u7528tcl\u811a\u672c\u81ea\u52a8\u5316\u5730\u8c03\u7528\u5176API\u3002\u4f18\u52bf\u5728\u4e8e\u80fd\u591f\u5b9a\u5236\u6570\u636e\u5305\u7684\u5404\u4e2a\u90e8\u5206\uff0c\u56e0\u6b64\u7528\u6237\u53ef\u4ee5\u7075\u6d3b\u5bf9\u76ee\u6807\u673a\u8fdb\u884c\u7ec6\u81f4\u5730\u63a2\u6d4b\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>hping3 [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-c<\/td>\u53d1\u9001\u6570\u636e\u5305\u7684\u6b21\u6570<\/td><\/tr>
-m<\/td>\u8bbe\u7f6eTCP\u5e8f\u5217\u6570<\/td><\/tr>
-v<\/td>\u7248\u672c\u4fe1\u606f<\/td><\/tr>
-I<\/td>\u7f51\u5361\u63a5\u53e3<\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5bf9\u76ee\u6807\u7aef\u53e3\u626b\u63cf\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# hping3 -I eth0 -S 192.168.10.1 -p 80  <\/pre>\n\n\n\n

\u6d4b\u8bd5\u76ee\u6807\u9632\u706b\u5899\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# hping3 -S  -c 1000000 -a 10.10.10.10 -p 21 10.10.10.10 <\/pre>\n\n\n\n

\u5728\u53d1\u9001\u7aef\u4f7f\u7528\u7b7e\u540d\u6253\u5305\u7684ICMP\u5305\u53d1\u9001\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]#hping3 192.168.1.108 --icmp -d 100 --sign signature --file \/etc\/passwd <\/pre>\n\n\n\n

\u5f88\u76f4\u89c2\u7684\u770b\u5230TTL\u7684\u53d8\u5316\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# hping3 -z 192.168.0.107   <\/pre>\n\n\n\n

\u4f7f\u7528\u968f\u673a\u5730\u5740\u4f2a\u88c5\u81ea\u5df1\u7684\u5730\u5740\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# hping3 --rand-source 192.168.0.107  <\/pre>\n","protected":false},"excerpt":{"rendered":"

hping3\u547d\u4ee4\u662f\u7528\u4e8e\u751f\u6210\u548c\u89e3\u6790TCPIP\u534f\u8bae\u6570\u636e\u5305\u7684\u5f00\u6e90\u5de5\u5177\uff0c\u4e5f\u662f\u5b89\u5168\u5ba1\u8ba1\u3001\u9632\u706b\u5899\u6d4b\u8bd5\u7b49\u5de5\u4f5c\u7684\u6807\u914d\u5de5\u5177 \u3002 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3187"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=3187"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3187\/revisions"}],"predecessor-version":[{"id":3559,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3187\/revisions\/3559"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}