在PC上使用Wireshark来监控Android手机上的流量 [英] Using wireshark on the pc to monitor traffic on the Android phone

查看:1305
本文介绍了在PC上使用Wireshark来监控Android手机上的流量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了了解其它应用程序连接到互联网服务,我想我的监视Linux的PC上通过Wireshark的交通。我知道有Wireshark的工具,为Android,但这些要求手机扎根矿山这是没有的。

In order to learn how other applications connect to internet services I would like to monitor the traffic via Wireshark on my Linux PC. I know there are Wireshark tools for Android, but these require that the phone is rooted which mine isn't.

我看了几个地方,如果手机和PC上运行Wireshark的使用相同的wifi连接,可以监控来自Wireshark的交通上的PC如果在混杂模式运行。

I have read several places that if the phone and the pc running wireshark use the same wifi connection, it is possible to monitor the traffic from Wireshark on the pc if it is running in promiscous mode.

我已经试过了,但我看不到这个以外的任何流量:

I have tried that but I can't see any traffic except this:

77  4.638965    ZygateCo_4f:70:27   Htc_b7:a4:78    LLC I, N(R)=0, N(S)=92; DSAP 0xe2 Individual, SSAP 0x36 Response

除了这些线路(这我不知道是什么意思),没有从手机流量Wireshark来看看。

Apart from these lines (which I have no clue what means) there is no traffic from the phone to see in Wireshark.

是进一步措施,才能有此设置工作执行?

Are the further steps to perform in order to have this setup working?

另外,还有其他的方式来拦截对流量的未扎根的电话?

Alternatively, are there other ways to intercept the traffic on a un-rooted phone?

(一种方法是设置中的PC作为接入点,然后将手机连接到它,但我还没有成功地建立了我的Linux PC(Debian的)作为AP)

(One way is to setup the pc as an access point and then connect the phone to it, but I have not succeeded in setting up my linux pc (Debian) as an AP)

推荐答案

Wireshark的监视您的计算机上只有netwrok卡。但是,您可以通过使用集线器监控从您的手机流量。请按照以下步骤执行此操作:

WireShark monitors only netwrok card on your computer. However, you can monitor the traffic from your phone by using hub. Follow these steps to do this:


  1. 您的以太网电缆(互联网)连接到集线器的上行端口。

  2. 连接计算机乌尔运行Wireshark的到集线器的端口中的一个。

  3. 使用集线器上的另一个端口,并将其连接到具有无线路由器。

  4. 您的手机连接到无线路由器。

  5. 运行Wireshark的!

使用HUB的原因是因为一个集线器没有流量转发到所有的端口。

The reason of using hub is because a hub does forward traffic to all ports.

这篇关于在PC上使用Wireshark来监控Android手机上的流量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆