tcpdump抓DHCP包
2018-08-30 本文已影响0人
企者
tcpdump -i eth0 -c 8 -s 0 -w /mnt/sdcard/dhcp.pcap 'udp and port 67 and port 68' &
- -i 选择网卡
- -c 数据包个数
- -s 数据包长度,0代表完整数据包
- -w 写入文件
DHCP使用67和68端口
&使进程后台运行
tcpdump -i eth0 -c 8 -s 0 -w /mnt/sdcard/dhcp.pcap 'udp and port 67 and port 68' &
DHCP使用67和68端口
&使进程后台运行