{"id":307,"date":"2023-04-20T15:44:49","date_gmt":"2023-04-20T07:44:49","guid":{"rendered":"http:\/\/idc.birk.cn\/?p=307"},"modified":"2023-04-20T20:43:04","modified_gmt":"2023-04-20T12:43:04","slug":"%e5%8f%91%e5%8c%85%e6%b5%8b%e8%af%95%e7%94%a8sendip%e5%b7%a5%e5%85%b7%e5%ae%89%e8%a3%85%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/idc.birk.cn\/?p=307","title":{"rendered":"\u53d1\u5305\u6d4b\u8bd5\u7528sendip\u5de5\u5177\u5b89\u88c5\u65b9\u6cd5"},"content":{"rendered":"<p>SENDIP\u662f\u4e00\u4e2aLINUX \u4e0b\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u7684\u65b9\u5f0f\u53d1\u9001\u5404\u79cd\u683c\u5f0f\u7684IP\u5305\uff0c\u5b83\u53ef\u4ee5\u5b9a\u5236\u53d1\u51fa\u7684\u5305\u7684\u5404\u79cd\u534f\u8bae\u4ee5\u53ca\u534f\u8bae\u4f7f\u7528\u7684\u62a5\u6587\u5b57\u6bb5\u5c5e\u6027\u503c\uff0c\u76ee\u524d\u53ef\u652f\u6301NTP, BGP, RIP, RIPng,TCP, UDP, ICMP \u6216raw\u5305\u683c\u5f0f\uff0c\u540c\u65f6\u652f\u6301IPv4\u548cIPv6\u3002<\/p>\n<h4>1.SENDIP\u5b89\u88c5<\/h4>\n<p>wget http:\/\/www.earth.li\/projectpurple\/files\/sendip-2.5-1.i386.rpm<\/p>\n<h4>2.\u4e0b\u8f7d\u540e\u5b89\u88c5\u4f9d\u8d56\u5305<\/h4>\n<p>yum install -y zlib-devel.i686<\/p>\n<p>\u5982\u679c\u4e0d\u5b89\u88c5\u4f9d\u8d56\u5305\uff0c\u5b89\u88c5\u65f6\u4f1a\u63d0\u793a\u5982\u4e0b\u62a5\u9519<\/p>\n<p style=\"padding-left: 40px\">libc.so.6 is needed by sendip-2.5-1.i386<br \/>\nlibc.so.6(GLIBC_2.0) is needed by sendip-2.5-1.i386<br \/>\nlibc.so.6(GLIBC_2.1) is needed by sendip-2.5-1.i386<br \/>\nlibc.so.6(GLIBC_2.1.3) is needed by sendip-2.5-1.i386<br \/>\nlibc.so.6(GLIBC_2.3) is needed by sendip-2.5-1.i386<br \/>\nlibdl.so.2 is needed by sendip-2.5-1.i386<br \/>\nlibdl.so.2(GLIBC_2.0) is needed by sendip-2.5-1.i386<br \/>\nlibdl.so.2(GLIBC_2.1) is needed by sendip-2.5-1.i386<br \/>\nlibm.so.6 is needed by sendip-2.5-1.i386<\/p>\n<h4>3.\u5b89\u88c5\u4e0b\u8f7d\u597d\u7684sendip rpm\u5305<\/h4>\n<p>rpm -ivh sendip-2.5-1.src.rpm<\/p>\n<h4>4.\u5b89\u88c5\u6821\u9a8c<\/h4>\n<p>sendip -h\u68c0\u67e5sendip\u662f\u5426\u5b89\u88c5\u6210\u529f<\/p>\n<p>[root@veen]# sendip<br \/>\nNo hostname specified<br \/>\nUsage: sendip [-v] [-d data] [-h] [-f datafile] [-p module] [module options] hostname<br \/>\n-d data add this data as a string to the end of the packet<br \/>\nData can be:<br \/>\nrN to generate N random(ish) data bytes;<br \/>\n0x or 0X followed by hex digits;<br \/>\n0 followed by octal digits;<br \/>\nany other stream of bytes<br \/>\n-f datafile read packet data from file<br \/>\n-h print this message<br \/>\n-p module load the specified module (see below)<br \/>\n-v be verbose<\/p>\n<p>Modules are loaded in the order the -p option appears. The headers from<br \/>\neach module are put immediately inside the headers from the previos model in<br \/>\nthe final packet. For example, to embed bgp inside tcp inside ipv4, do<br \/>\nsendip -p ipv4 -p tcp -p bgp ....<\/p>\n<p>Modules available at compile time:<br \/>\nipv4 ipv6 icmp tcp udp bgp rip ntp<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SENDIP\u662f\u4e00\u4e2aLINUX \u4e0b\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u7684\u65b9\u5f0f\u53d1\u9001\u5404\u79cd\u683c\u5f0f\u7684IP\u5305\uff0c\u5b83\u53ef\u4ee5\u5b9a\u5236\u53d1\u51fa\u7684\u5305\u7684\u5404\u79cd\u534f\u8bae\u4ee5\u53ca\u534f\u8bae\u4f7f\u7528\u7684\u62a5\u6587\u5b57\u6bb5\u5c5e\u6027\u503c\uff0c\u76ee\u524d\u53ef\u652f\u6301NTP, BGP, RIP, RIPng,TCP, UDP, ICMP \u6216raw [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":174,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"topic":[37],"class_list":["post-307","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","topic-linux"],"_links":{"self":[{"href":"https:\/\/idc.birk.cn\/index.php?rest_route=\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.birk.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.birk.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.birk.cn\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.birk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=307"}],"version-history":[{"count":4,"href":"https:\/\/idc.birk.cn\/index.php?rest_route=\/wp\/v2\/posts\/307\/revisions"}],"predecessor-version":[{"id":315,"href":"https:\/\/idc.birk.cn\/index.php?rest_route=\/wp\/v2\/posts\/307\/revisions\/315"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/idc.birk.cn\/index.php?rest_route=\/wp\/v2\/media\/174"}],"wp:attachment":[{"href":"https:\/\/idc.birk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.birk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.birk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=307"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/idc.birk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}