一、tcpdump抓包命令使用
tcpdump -nx -s 10000 -c 10000 host 211.136.163.230 and port 80 > all.log &
./ana all.log 211.136.163.230.80 |awk '{ORS=" "; print $1 $2; if(NR%3==0)print "/n"; }' |sed 's/IP/ /g'>all.delay
二、snoop抓包命令使用
格式1:
snoop -x 54 -ta tcp port <smsICP监听的端口> from (sp的ip)
例子 带端口抓包)
snoop -x 54 -ta tcp port 7890 host 221.130.45.142 |tee a.log
例子 不带端口抓包)
snoop -x 54 -ta host 211.94.131.202|tee 2005020900.log
snoop -x 54 -ta tcp port 7890 |tee a.log
snoop -o test.cap -d ce0 port 3868
本文详细介绍了如何使用TCPdump和Snoop进行网络数据包捕获。包括具体的命令格式、参数说明及实际应用案例,如指定主机、端口进行数据包捕获等。
4746

被折叠的 条评论
为什么被折叠?



