python - 从 pcap 文件中提取 UDP 数据流
问题描述
如何使用 tshark 将 pcap 文件中捕获的所有数据包的 udp 数据流(ascii 格式)转换为文本文件。我试过这个
tshark -V -r /tmp/file_src.pcap > file_dst.txt
但我怎样才能只得到 udp 数据流?
谢谢
解决方案
您可以使用 tshark 的 -Y 标志来指定过滤器
tshark -V -r /tmp/file_src.pcap -Y udp > file_dst.txt
推荐阅读
- python - 从动态网页获取链接时遇到问题
- mvc.jquery.datatables - 如何向 jquery 数据表服务器端渲染添加多个“CRUD”列?
- powershell - powershell 将 CSV 上的行读取为对象
- julia - DelimitedFiles 的包错误
- c++ - C++ 错误代码样板的模板与宏
- javascript - 无法连接到蓝牙 LE 设备,DevicePairingResultStatus.Failed
- python - Pandas countif 有条件
- android - 如何在android中的微调器onItemSelected上刷新片段
- 2sxc - 通过应用程序中的模板获取内容以呈现问题
- angular - 更改 Jasmine 中的通过/失败文本颜色