{"id":90170,"date":"2024-03-04T09:36:12","date_gmt":"2024-03-04T01:36:12","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=90170"},"modified":"2024-03-04T09:36:12","modified_gmt":"2024-03-04T01:36:12","slug":"linux-pcap-file","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-pcap-file.html","title":{"rendered":"Linux\u4e0b\u5982\u4f55\u64cd\u4f5c pcap \u6587\u4ef6"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u5982\u679c\u4f60\u662f\u4e00\u4e2a\u6d4b\u8bd5\u5165\u4fb5\u4fa6\u6d4b\u7cfb\u7edf\u6216\u4e00\u4e9b\u7f51\u7edc\u8bbf\u95ee\u63a7\u5236\u7b56\u7565\u7684\u7f51\u7edc\u7ba1\u7406\u5458\uff0c\u90a3\u4e48\u4f60\u7ecf\u5e38\u9700\u8981\u6293\u53d6\u6570\u636e\u5305\u5e76\u5728\u79bb\u7ebf\u72b6\u6001\u4e0b\u5206\u6790\u8fd9\u4e9b\u6587\u4ef6\u3002\u5f53\u9700\u8981\u4fdd\u5b58\u6355\u83b7\u7684\u6570\u636e\u5305\u65f6\uff0c\u6211\u4eec\u4e00\u822c\u4f1a\u5b58\u50a8\u4e3a libpcap \u7684\u6570\u636e\u5305\u683c\u5f0f pcap\uff0c\u8fd9\u662f\u4e00\u79cd\u88ab\u8bb8\u591a\u5f00\u6e90\u7684\u55c5\u63a2\u5de5\u5177\u4ee5\u53ca\u6355\u5305\u7a0b\u5e8f\u5e7f\u6cdb\u4f7f\u7528\u7684\u683c\u5f0f\u3002\u5982\u679c pcap \u6587\u4ef6\u88ab\u7528\u4e8e\u5165\u4fb5\u6d4b\u8bd5\u6216\u79bb\u7ebf\u5206\u6790\u7684\u8bdd\uff0c\u90a3\u4e48\u5728\u5c06\u4ed6\u4eec\u6ce8\u5165\u7f51\u7edc\u4e4b\u524d\u901a\u5e38\u8981\u5148\u5bf9 pcap \u6587\u4ef6\u8fdb\u884c\u4e00\u4e9b\u64cd\u4f5c\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n \u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u5c06\u4ecb\u7ecd\u4e00\u4e9b\u64cd\u4f5c pcap \u6587\u4ef6\u7684\u5de5\u5177\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u5b83\u4eec \u3002<\/p>\n Editcap \u4e0e Mergecap<\/strong><\/div>\n \nWireshark\uff0c\u662f\u6700\u53d7\u6b22\u8fce\u7684 GUI \u55c5\u63a2\u5de5\u5177\uff0c\u5b9e\u9645\u4e0a\u5b83\u5e26\u4e86\u4e00\u5957\u975e\u5e38\u6709\u7528\u7684\u547d\u4ee4\u884c\u5de5\u5177\u96c6\u3002\u5176\u4e2d\u5305\u62ec editcap \u4e0e mergecap\u3002editcap \u662f\u4e00\u4e2a\u4e07\u80fd\u7684 pcap \u7f16\u8f91\u5668\uff0c\u5b83\u53ef\u4ee5\u8fc7\u6ee4\u5e76\u4e14\u80fd\u4ee5\u591a\u79cd\u65b9\u5f0f\u6765\u5206\u5272 pcap \u6587\u4ef6\u3002mergecap \u53ef\u4ee5\u5c06\u591a\u4e2a pcap \u6587\u4ef6\u5408\u5e76\u4e3a\u4e00\u4e2a\u3002 \u8fd9\u7bc7\u6587\u7ae0\u5c31\u662f\u57fa\u4e8e\u8fd9\u4e9b Wireshark \u547d\u4ee4\u884c\u5de5\u5177\u7684\u3002<\/p>\n \u5982\u679c\u4f60\u5df2\u7ecf\u5b89\u88c5\u8fc7 Wireshark \u4e86\uff0c\u90a3\u4e48\u8fd9\u4e9b\u5de5\u5177\u5df2\u7ecf\u5728\u4f60\u7684\u7cfb\u7edf\u4e2d\u4e86\u3002\u5982\u679c\u8fd8\u6ca1\u88c5\u7684\u8bdd\uff0c\u90a3\u4e48\u6211\u4eec\u63a5\u4e0b\u6765\u5c31\u5b89\u88c5 Wireshark \u547d\u4ee4\u884c\u5de5\u5177\u3002 \u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5728\u57fa\u4e8e Debian \u7684\u53d1\u884c\u7248\u4e0a\u6211\u4eec\u53ef\u4ee5\u4e0d\u7528\u5b89\u88c5 Wireshark GUI \u800c\u4ec5\u5b89\u88c5\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u4f46\u662f\u5728 Red Hat \u53ca \u57fa\u4e8e\u5b83\u7684\u53d1\u884c\u7248\u4e2d\u5219\u9700\u8981\u5b89\u88c5\u6574\u4e2a Wireshark \u5305\u3002 $ sudo apt-get install wireshark-common<\/pre>\n |