tcpdump抓包命令:
tcpdump tcp -i eth0 -s 0 and host 223.246.111.51 and 192.168.7.117 and port 1883 -w ./winet2020.cap
后台执行:
nohup tcpdump tcp -i eth0 -s 0 and host 223.246.111.51 and 192.168.7.117 and port 1883 -w ./winet2020.cap &
查看后台执行的tcpdump命令:
ps -ef | grep 'tcpdump'
查看tcpdump的使用说明:
man tcpdump
wireshark检索条件:
ip.dst == 114.242.167.195
ip.src==1.1.1.1
ip.src==192.168.101.8 and http
抓取mqtt报文:
抓取bank报文:
抓取http报文: