tcpdump抓包,抓包导出.pcap文件用wireshark看

1、抓所有口的包
tcpdump -i any host 设备的ip

2、抓特定口的包
tcpdump -i eth2 port 61182 -nne

3、将抓到的包导出到pacb文件

tcpdump -i eth2 port 61182 -nne -s0 -w /tmp/61182.pcap

  • -s0: Sets the snapshot length to capture the entire packet. The 0 means that tcpdump will capture the entire packet regardless of its size.
  • -w /tmp/61182.pcap: Writes the raw packets to a file (/tmp/61182.pcap) instead of parsing and printing them out.

相关推荐

  1. tcpdump导出.pcap文件wireshark

    2024-06-06 05:44:02       9 阅读
  2. tcpdump

    2024-06-06 05:44:02       20 阅读
  3. tcpdump

    2024-06-06 05:44:02       7 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-06-06 05:44:02       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-06-06 05:44:02       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-06-06 05:44:02       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-06-06 05:44:02       18 阅读

热门阅读

  1. 具体因字数问题

    2024-06-06 05:44:02       6 阅读
  2. SQL 语言:存储过程和触发器

    2024-06-06 05:44:02       7 阅读
  3. 每天学习一个Windows命令或Linux命令——shutdown

    2024-06-06 05:44:02       8 阅读
  4. mongodb-常用命令

    2024-06-06 05:44:02       7 阅读
  5. 深入探索 MongoDB:高级索引解析与优化策略

    2024-06-06 05:44:02       8 阅读
  6. 甜蜜约会网页制作html

    2024-06-06 05:44:02       8 阅读
  7. AWK使用总结

    2024-06-06 05:44:02       7 阅读
  8. 鲁教版八年级数学上册-笔记

    2024-06-06 05:44:02       8 阅读