测试tcpdump手机端抓包。简单记录一下步骤:
D:\MyData\majx2>cd D:\Program Files\Microvirt\MEmu\
D:\Program Files\Microvirt\MEmu>adb connect 127.0.0.1:21503
connected to 127.0.0.1:21503
D:\Program Files\Microvirt\MEmu>adb devices
List of devices attached
127.0.0.1:21503 device
D:\Program Files\Microvirt\MEmu>adb push D:\MyData\majx2\Downloads\tcpdump /data/local
3151 KB/s (2083192 bytes in 0.645s)
D:\Program Files\Microvirt\MEmu>adb shell
root@DUK-AL20:/ # cd /data/local
cd /data/local
root@DUK-AL20:/data/local # chmod 777 tcpdump
chmod 777 tcpdump
root@DUK-AL20:/data/local # mkdir -p /sdcard/aTest
mkdir -p /sdcard/aTest
root@DUK-AL20:/data/local # tcpdump -X -s 0 -w /sdcard/aTest/test_meixin.pcap
tcpdump -X -s 0 -w /sdcard/aTest/test_meixin.pcap
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
^C
D:\Program Files\Microvirt\MEmu>adb pull /sdcard/aTest/test_meixin.pcap ./test_meixin.pcap
1636 KB/s (71141 bytes in 0.042s)
网友评论