美文网首页
Android系统手机端抓包方法(tcpdump)

Android系统手机端抓包方法(tcpdump)

作者: 格老子 | 来源:发表于2017-07-24 16:06 被阅读64次
    1. 手机要有root权限

    2. 下载tcpdump http://www.strazzere.com/android/tcpdump

    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 stop it ...

    8, adb pull /sdcard/capture.pcap d:/

    9, 在电脑上用wireshark打开capture.pcap即可分析log

    http://www.cnblogs.com/anee/archive/2013/09/12/3316139.html

    http://blog.csdn.net/u011068702/article/details/52225498

    http://www.cnblogs.com/likwo/archive/2012/09/06/2673944.html

    相关文章

      网友评论

          本文标题:Android系统手机端抓包方法(tcpdump)

          本文链接:https://www.haomeiwen.com/subject/tkmbkxtx.html