linux抓包命令:
抓取從192.168.2.12 and 172.16.0.66 兩臺機器上發送到本機上的包,並放在當前目錄下的 tcpdump.dump.wbb1 二進制文件裏:
tcpdump host 192.168.2.12 and 172.16.0.66 -f -a -XX -w tcpdump.dump.wbb1 -i eth0
tcpdump -r tcpdump.dump.wbb1 -tttt -n -XX tcp > tcpdump.log.wbb1
將 tcpdump.dump.wbb1 二進制文件中的內容寫入tcpdump.log.wbb1日誌文件中.
vi 打開看到的內容: