linux 抓包工具tcpdump和tshark

yum install tcpdump

tcpdump -nn -c 100 抓一百条

tcpdump -nn -i eth0 指定网卡

tcpdump -nn port 22 指定端口

tcpdump -nn tcp and port 22 指定协议

tcpdump -nn host ip 指定IP

tcpdump -nn -s0 完整包

tcpdump -nn  -w 写入文件

# yum install -y wireshark

 

posted @ 2017-01-10 20:00  王先生架构  阅读(174)  评论(0编辑  收藏  举报
失独者之家