1.安装tcpdump到设备
adb push tcpdump /data/local/tcpdump
adb shell chmod 6755 /data/local/tcpdump
2.使用 tcpdump
cd /data/local
./tcpdump -i any -p -s 0 -w /sdcard/capture.pcap
3.拉取抓获的tcp/udp包
adb pull /sdcard/capture.pcap
4.使用Wireshark打开capture.pcap
1.安装tcpdump到设备
adb push tcpdump /data/local/tcpdump
adb shell chmod 6755 /data/local/tcpdump
2.使用 tcpdump
cd /data/local
./tcpdump -i any -p -s 0 -w /sdcard/capture.pcap
3.拉取抓获的tcp/udp包
adb pull /sdcard/capture.pcap
4.使用Wireshark打开capture.pcap
本文标题:Android Tcpdump抓取数据
本文链接:https://www.haomeiwen.com/subject/qiuouctx.html
网友评论