wireshark-实时抓取移动设备上的通信包(Wireshark+nc+tcpdump)

1.iPhone协议分析

PC端
cd D:\Program Files (x86)\usbmuxd-1.0.8\python-client

tcprelay.py -t 22:22

tcprelay.py -t 7100:6100


cd E:\Program Files (x86)\wireshark-1.11.3\wireshark-1.11.3\wireshark-gtk2

nc 127.0.0.1 6100 | wireshark.exe -k -S -i -

iphone端:
tcpdump -n -s 0 -w - | nc -l -p 7100


2.android协议分析

PC端:
adb forward tcp:6100 tcp:7100 && nc 127.0.0.1 6100 | wireshark.exe -k -S -i -

android端:
adb shell "/data/local/tmp/tcpdump -n -s 0 -w - | /data/local/tmp/nc -l -p 7100"

你可能感兴趣的:(wireshark-实时抓取移动设备上的通信包(Wireshark+nc+tcpdump))