tcpdump装包命令
时间: 2023-09-24 07:09:41 浏览: 114
以下是一些常用的tcpdump抓包命令:
1. 安装tcpdump:`yum install tcpdump` [2]
2. 列出本机所有的网卡接口:`tcpdump -D` [2]
3. 捕获特定网卡的数据包:`tcpdump -i eth0` [2]
4. 捕获具体数量的数据包:`tcpdump -c 5 -i eth0` [2]
5. 捕获的数据包保存到指定的文件:`tcpdump -w 0001.pcap -i eth0` [2]
6. 捕获的数据包显示IP而不是域名:`tcpdump -n -i eth0` [2]
7. 捕获指定协议的数据包:`tcpdump -i eth0 tcp` [2]
8. 捕获特定端口的数据包:`tcpdump -i eth0 port 22` [2]
请根据实际需求选择合适的命令来使用tcpdump进行抓包。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [01-----tcpdump抓包命令](https://blog.csdn.net/weixin_44517656/article/details/115345041)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [tcpdump命令](https://blog.csdn.net/qq_22310551/article/details/123198365)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文