android 抓包 使用 tcpdmp + Wireshark

     下载地址tcpdump: http://www.androidtcpdump.com/
     使用su用户, 给/system/可写的权限 mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
     安装到/system/xbin 目录
     设置tcpdump权限  chmod 777 tcudmp     
     开始抓包 tcpdump -p -vv -s 0 -w a1.pcap
     开始在手机上执行APP
     Ctrl + C 结束抓包
     导出a1.pcap  到 PC: adb pull /system/xbin/a1.pcap a1.pcap
 
     下载安装Wireshark: https://www.wireshark.org/download.html
     使用a1.pcap 分析 数据包
 
     过滤想要的包
     http && ip.src = 191.168.1.105 && ip.dst = xxx.xxx.xxx.xxx   // 本机IP 目标机IP
 
原文地址:https://www.cnblogs.com/emyueguang/p/5467998.html