1. 调用 tshark, text2pcap 进行 system() 操作,并将结果发到流中,总体来说,在jvm调用shell 是效率比较低的
2. 使用 GitHub - kaitoy/pcap4j: A Java library for capturing, crafting, and sending packets. 它完全脱离wireshark了,只是说libpcap的包装,支持的协议不是很全
Wireshark数据包解析:在Wireshark中关于数据包的叫法有三个术语,分别是症包、段。 Wireshark分析数据包 在Wireshark中的数据包都可以称为是网络数据