在Ubuntu上分析dumpcap文件,可先安装Wireshark或tshark工具,然后用它们打开dumpcap生成的.pcap文件,具体如下:
sudo apt update,sudo apt install wireshark。sudo apt install wireshark-cli。tshark -r capture.pcap,显示数据包详细信息。tshark -r capture.pcap -Y "http",只显示HTTP协议数据包。tshark -r capture.pcap -T fields -e frame.number -e ip.src -e ip.dst -E header=y -E separator=, > parsed.csv,将特定字段导出为CSV文件。