一: tcpdump操作流程

1. 手机要有root权限

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

3.adb push c:\wherever_you_put{color}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

二:wireshark 的操作流程

1:双击上面的capture.pcap文件用wireshark打开

2:在filter 过滤器出输入:http,回车,就能将所有的http都过滤出来。

更多相关文章

  1. ubuntu 10.4 下的 android 编译环境 配置
  2. android 使用Monkey进行压力测试
  3. Android(安卓)- Error: "java.io.IOException: setDataSource fa
  4. android模拟器DNS设置
  5. avd 配置
  6. 【Android】实现非root的 Traceroute -- 非Root权限下移植可执行
  7. android BOOT_COMPLETED 失败
  8. android 百度sdk之 百度定位
  9. Android(安卓)Studio使用第三方框架的方法

随机推荐

  1. Android开发者面试一百题
  2. android binder 机制三(匿名Service)
  3. 推荐给Android开发者的抢手书单
  4. android + red5 + rtmp
  5. 解决Android SDK Manager不能更新的问题
  6. Android消息机制之ThreadLocal浅析
  7. Android解析lrc里的歌词
  8. android中SELINUX规则分析和语法简介
  9. android 1.6中LinearLayout getBaseline
  10. android UI进阶之style和theme的使用