安卓模拟器WireShark抓包

17

安卓模拟器WireShark抓包

1.安卓模拟器监听端口

adb.exe shell "tcpdump -n -s 0 -w - | busybox nc -l -p 11233"

adb.exe shell "tcpdump not host 10.0.2.2 -n -s 0 -w - | busybox nc -l -p 11233"

2. adb转发端口

// adb转发端口
adb forward tcp:11233 tcp:11233

// 查看本机监听状态
netstat -ano|findstr 11233 

ncat.exe 127.0.0.1 11233 | "C:\Program Files\Wireshark\Wireshark.exe"  -k -S -i -