从pcap文件中提取UDP数据流

时间:2019-03-12 05:23:17

标签: python udp wireshark tshark

我如何使用tshark将pcap文件中捕获的所有数据包的udp数据流(ascii格式)转换为文本文件。 我尝试过了

tshark -V -r /tmp/file_src.pcap > file_dst.txt

但是我怎么只能得到udp数据流?

谢谢

1 个答案:

答案 0 :(得分:0)

您可以使用tshark的-Y标志来指定过滤器

tshark -V -r /tmp/file_src.pcap -Y udp > file_dst.txt