android抓包及分析
2012-08-07 18:10
204 查看
操作步骤
1、adb shell
进入shell
2、netcfg
查看网络连接
3、tcpdump -i rmnet0 -v -s 0 -w /sdcard/test.pcap
利用tcpdump来抓包,保存到/sdcard/test.pcap。
输入上面命令,点击回车开始抓包,按ctrl+C结束抓包。
4、导出pcap包,利用wireshark查看数据包。
5、Wireshark使用手册http://man.lupaworld.com/content/network/wireshark/
其他参考博文:
如果要抓TCP数据包,我们可以使用TCPdump工具,类似于windows/linux下使用的这个工具一样。具体方法是
下载tcpdump, 还有个地址是http://www.strazzere.com/android/tcpdump,不知道具体版本,也可在附件中下载。
详细使用请参考 http://www.tcpdump.org/里面的文档 你需要root权限,
adb push c:\wherever_you_put\tcpdump /data/local/tcpdumpadb shell chmod 6755 /data/local/tcpdump
抓包很简单
adb shell tcpdump -p -vv -s 0 -w /sdcard/capture.pcap# "-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 ...
导出
adb pull /sdcard/capture.pcap .
下载wireshark查看数据包,地址是http://www.wireshark.org/download.html,打开这个数据包,就可以查看数据包内容了。
参 考文档:http://prem-android.blogspot.com ... packets-in-android- tcpdump.html http://nerdjusttyped.blogspot.co ... id-binary-solo.html http://www.gker.net/bbs/viewthread.php?tid=77&extra=
1、adb shell
进入shell
2、netcfg
查看网络连接
3、tcpdump -i rmnet0 -v -s 0 -w /sdcard/test.pcap
利用tcpdump来抓包,保存到/sdcard/test.pcap。
输入上面命令,点击回车开始抓包,按ctrl+C结束抓包。
4、导出pcap包,利用wireshark查看数据包。
5、Wireshark使用手册http://man.lupaworld.com/content/network/wireshark/
其他参考博文:
如果要抓TCP数据包,我们可以使用TCPdump工具,类似于windows/linux下使用的这个工具一样。具体方法是
下载tcpdump, 还有个地址是http://www.strazzere.com/android/tcpdump,不知道具体版本,也可在附件中下载。
详细使用请参考 http://www.tcpdump.org/里面的文档 你需要root权限,
adb push c:\wherever_you_put\tcpdump /data/local/tcpdumpadb shell chmod 6755 /data/local/tcpdump
抓包很简单
adb shell tcpdump -p -vv -s 0 -w /sdcard/capture.pcap# "-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 ...
导出
adb pull /sdcard/capture.pcap .
下载wireshark查看数据包,地址是http://www.wireshark.org/download.html,打开这个数据包,就可以查看数据包内容了。
参 考文档:http://prem-android.blogspot.com ... packets-in-android- tcpdump.html http://nerdjusttyped.blogspot.co ... id-binary-solo.html http://www.gker.net/bbs/viewthread.php?tid=77&extra=
相关文章推荐
- android Tcpdump抓包分析
- Android下使用TcpDump抓包Wireshark分析数据
- 一次app抓包引发的Android分析记录
- Android手机抓包分析协议
- 详解使用tcpdump、wireshark对Android应用程序进行抓包并分析
- 使用tcpdump和wireshark对android手机进行网络抓包分析
- 使用tcpdump、wireshark对Android应用程序进行抓包并分析
- *android抓包工具——fiddler抓包分析api接口
- 利用tcpdump+wireshark对android进行抓包分析
- Android下使用TCPDUMP抓包Wireshark分析数据啦。
- 使用Fiddler对Android手机的应用数据进行抓包分析
- Android下使用TCPDUMP抓包Wireshark分析数据啦
- Android 抓包并通过 Wireshark 分析
- 使用WireShark抓包分析Android网络请求时间(二)
- 基于TcpDump和pcap文件分析的Android平台网络抓包程序设计与实现【随便】
- Android抓包分析-fiddler版
- Android中使用tcpdump、wireshark进行抓包并分析技术介绍
- Windows Phone真机抓包并分析应用程序的网络通讯(Android、iPhone也适用)
- [转] Android实时抓包分析 : 善用adb调试桥
- Android下使用TCPDUMP抓包Wireshark分析数据啦。