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端口
&使进程后台运行
本文标题:tcpdump抓DHCP包
本文链接:https://www.haomeiwen.com/subject/idjdwftx.html
网友评论