linux下抓包
tcpdump -nn
指定網卡名稱 -i 名稱
指定端口 -port 端口
指定數量 -c
指定存放路徑 -w 路徑linux
抓下來的文件是cat不了的 會出現亂碼。
可使用tcpdump -r 查看 ,可是查看出來的仍是數據流web
#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服務tcp