您的位置:首页 > 理论基础 > 计算机网络

tcpdump 抓包常用命令

2015-06-30 14:04 453 查看
1、tcpdump -i eth0 host xxx.xxx.xxx.xxx and tcp  -w test.pcap

      抓取指定网卡某一IP地址,且是TCP连接的网络包,并重定向到文件

2、tcpdump -i eth0 host xxx.xxx.xxx.xxx and port XXXX -s 0 -w test.cap

     抓取指定网卡某一IP地址、端口,并重定向到文件

3、 tcpdump -i eth0 src/dst host xxx.xxx.xxx.xxx

      抓取指定网卡某一以IP地址为源或目的的网络数据包
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  网络