1.工具下载
pc->wireshark
pc->ncat (windows可以在nmap内找到,linux下直接用nc)
android->nc(在busybox中,需要高级模式安装)
android->tcpdump
ncat放到wireshark安装目录下,需要复制ssleay32.dll libeay32.dll
2.执行命令
adb shell中执行:
tcpdump -n -s 0 -w - | nc -l -p 2015
pc端执行:
adb forward tcp:2015 tcp:2015
然后在wireshark安装目录下cmd执行:
ncat 127.0.0.1 2015 | wireshark -k -S -i -