如何在Android中捕获数据包? [英] How can I capture packets in Android?
问题描述
我想捕获TCP数据包以及协议数据(例如Android中的HTTP和HTTPS),类似于Windows中的Wireshark.
I would like to capture TCP packets as well as protocol data such as HTTP and HTTPS in Android, similar to Wireshark in Windows.
如何在Android中执行此操作?
How can I do this in Android?
推荐答案
选项1-Android PCAP
限制
Android PCAP应该可以正常工作,只要:
Android PCAP should work so long as:
您的设备运行Android 4.0或更高版本(或者理论上来说,少数运行Android 3.2的设备).早期版本的Android没有USB Host API
Your device runs Android 4.0 or higher (or, in theory, the few devices which run Android 3.2). Earlier versions of Android do not have a USB Host API
限制
电话应植根
限制
电话应植根
原因-可以在WireShark中分析生成的PCAP文件,这有助于我们进行分析.
Reason - the generated PCAP files can be analyzed in WireShark which helps us in doing the analysis.
- tPacketCapture
https://play.google.com/store/apps/details?id=jp.co.taosoftware.android.packetcapture&hl=zh_CN
优势
使用tPacketCapture非常容易,将捕获的数据包保存到PCAP文件中,可以使用诸如Wireshark之类的网络协议分析器应用程序轻松地对其进行分析.
Using tPacketCapture is very easy, captured packet save into a PCAP file that can be easily analyzed by using a network protocol analyzer application such as Wireshark.
- 您可以使用任何网络嗅探工具将android移动流量路由到PC并在桌面中捕获流量.
http://lifehacker.com/5369381/将您的Windows-7电脑变成一个无线热点
这篇关于如何在Android中捕获数据包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!