{"id":4541,"date":"2019-08-16T23:29:49","date_gmt":"2019-08-16T15:29:49","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4541"},"modified":"2019-08-16T23:34:32","modified_gmt":"2019-08-16T15:34:32","slug":"tcpreplay","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/tcpreplay","title":{"rendered":"tcpreplay\u547d\u4ee4 – \u6027\u80fd\u6216\u529f\u80fd\u6d4b\u8bd5"},"content":{"rendered":"\n
tcpreplay \u662f\u4e00\u79cdpcap\u5305\u7684\u91cd\u653e\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5c06\u7528ethreal\u3001wireshark\u5de5\u5177\u6293\u4e0b\u6765\u7684\u5305\u539f\u6837\u6216\u7ecf\u8fc7\u4efb\u610f\u4fee\u6539\u540e\u91cd\u653e\u56de\u53bb\u3002\u5b83\u5141\u8bb8\u4f60\u5bf9\u62a5\u6587\u505a\u4efb\u610f\u7684\u4fee\u6539\uff08\u4e3b\u8981\u662f\u6307\u5bf92\u5c42\u30013\u5c42\u30014\u5c42\u62a5\u6587\u5934\uff09\uff0c\u6307\u5b9a\u91cd\u653e\u62a5\u6587\u7684\u901f\u5ea6\u7b49\uff0c\u8fd9\u6837tcpreplay\u5c31\u53ef\u4ee5\u7528\u6765\u590d\u73b0\u6293\u5305\u7684\u60c5\u666f\u4ee5\u5b9a\u4f4dbug\uff0c\u4ee5\u6781\u5feb\u7684\u901f\u5ea6\u91cd\u653e\u4ece\u800c\u5b9e\u73b0\u538b\u529b\u6d4b\u8bd5\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>tcpreplay [\u53c2\u6570] [\u6587\u4ef6]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u5c06 ftp.pcap \u6587\u4ef6\u8fdb\u884c tcpprep \u64cd\u4f5c\uff0c\u5236\u4f5c cache \u6587\u4ef6\uff1a<\/p>\n\n\n\n \u91cd\u653e tftp \u670d\u52a1\u5668\u4e0a\u6293\u5230\u7684\u62a5\u6587 * a\u3001\u5728 tftp \u670d\u52a1\u5668\u4e0a\u4f7f\u7528 ethereal \u6293\u5305\uff0c\u5b58\u4e3a tftp.pcap \u6587\u4ef6\u3002 b\u3001\u5c06 pcap \u6587\u4ef6\u8fdb\u884c tcpprep \u7684\u64cd\u4f5c\uff0c\u5236\u4f5c cache \u6587\u4ef6\uff1a<\/p>\n\n\n\n tcpreplay \u662f\u4e00\u79cdpcap\u5305\u7684\u91cd\u653e\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5c06\u7528ethreal\u3001wireshark\u5de5\u5177\u6293\u4e0b\u6765\u7684\u5305\u539f\u6837 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4541"}],"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=4541"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4541\/revisions"}],"predecessor-version":[{"id":4629,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4541\/revisions\/4629"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-A
<\/td>-vA \u201cnnt\u201d\u8868\u793a\u4ee5tcpdump\u98ce\u683c\u8f93\u51fa\u62a5\u6587\u4fe1\u606f\uff0c\u5e76\u4e14\u4e0d\u6253\u5370\u65f6\u95f4\u6233\u3001\u4e3b\u673a\u540d\u3001\u7aef\u53e3\u670d\u52a1\u540d\u79f0\u3002\u6ce8\u610f\u4e0d\u8981\u4f7f\u7528-c\u53c2\u6570\u6765\u6307\u5b9a\u6253\u5370\u7684\u6570\u636e\u62a5\u6587\u7684\u4e2a\u6570\uff0c\u8fd9\u6837\u53d1\u9001\u51fa\u53bb\u7684\u62a5\u6587\u4e5f\u4f1a\u53d8\u5c11<\/td><\/tr> -c <\/td> \u53cc\u7f51\u5361\u56de\u653e\u62a5\u6587\u5fc5\u9009\u53c2\u6570\uff0c\u540e\u9762\u7d27\u8ddfcache\u6587\u4ef6\u540d\uff0c\u8be5\u6587\u4ef6\u4e3atcpprep\u6839\u636e\u5bf9\u5e94\u7684pcap\u6587\u4ef6\u6784\u9020\u51fa\u6765<\/td><\/tr> -i <\/td> \u53cc\u7f51\u5361\u56de\u653e\u62a5\u6587\u5fc5\u9009\u53c2\u6570\uff0c\u6307\u5b9a\u4e3b\u63a5\u53e3<\/td><\/tr> -K <\/td> \u91cd\u5199\u4ece\u7f51\u5361\u53d1\u9001\u62a5\u6587\u7684\u6e90MAC\u5730\u5740<\/td><\/tr> -O <\/td> \u6ca1\u6709\u6d4b\u8bd5\u4f7f\u7528<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# tcpprep -an client -i ftp.pcap -o ftp.cache \u2013v<\/pre>\n\n\n\n
[root@linuxcool ~]# tcpreplay -c ftp.cache -i eth0 -j eth1 ftp.pcap -R \u2013v <\/pre>\n","protected":false},"excerpt":{"rendered":"