Android通过tcpdump抓包
1 手机要有root权限 2 下载tcpdump android模拟器上linux里面有的会自带。 3 adb push c:\wherever_you_put\tcpdump /data/local/tcpdump 4 adb shell chmod 6755 /data/local/tcpdump 5 adb shell, su获得root权限 6 cd /data/local 7 ./tcpdump -i any -p -s 0 -w /sdcard/capture.pcap 命令参数: # "-i any": listen on any network interface # "-p": disable promiscuous mode (doesn't work anyway) # "-s 0": capture the entire packet # "-w": write packets to a file (rather than printing to stdout) ... do whatever you want to capture, then ^C to st...