linux下抓包
tcpdump -nn
指定網(wǎng)卡名稱 -i 名稱
指定端口 -port 端口
指定數(shù)量 -c
指定存放路徑 -w 路徑
抓下來的文件是cat不了的 會出現(xiàn)亂碼。
可以使用tcpdump -r 查看 ,但是查看出來的還是數(shù)據(jù)流
#yum install -y wireshark
tshark -n -t a -R http.request -T fields -e "frame.time" -e "jp.src" -e "http.host" -e "http.request.method" -e "http.request.uri"
可以查看80端口的一個web服務(wù)