Android - 处于 ad-hoc 模式时 tcpdump 出现问题
目前我正在开发一个需要使用 Android 和 tcpdump 的项目。
我所做的简短描述: 我想要使用 android 嗅探数据包。我已经构建了一个 Android 应用程序,它使用“tcpdump”来执行此操作。 基本上,应用程序启动 tcpdump,将捕获的数据包转储到文件中(在 sdcard 中)。然后我只需打开文件即可处理捕获的数据包。
问题 : 当 wifi 处于托管模式时,一切正常。但是,当我将 wifi 设备置于“ad-hoc”状态时,无线设备停止工作。
我正在使用“Samsung Captivated S”(SGH - I897),为了支持“偷听”(混杂模式)和临时安装,我安装了最新的“Cyanogen 7”rom(cm_galaxysmtd_full-126.zip,来自:http://download.cyanogenmod.com/?type=nightly&device=galaxysmtd)
我不知道如何解决这个问题,我真的需要你的帮助。我怀疑 “wpa_supplicat”应该为此负责,但很可能我错了。
提前致谢,
PS:我还应该提到我使用笔记本电脑启动了一个临时网络。然后两个 Android 设备加入 adhoc 网络。 Android 设备 (SGH-I897) 可以毫无问题地加入网络。所有设备都能互相 ping 通。
Currently I'm working on a project that demands using Android and tcpdump.
A short description of what I do:
I want sniff packets using android. I have built an android application which does this using by "tcpdump".
Basically the application initiate tcpdump, which dumps the captured packet in a file (in the sdcard). Then I process the captured packets just by opening the file.
The problem :
When the wifi is in managed mode, everything works fine. But, when I put the wifi device in "ad-hoc" the wireless device stops working.
I'm using "Samsung Captivated S" (SGH - I897), and in order support "overhearing" (promiscuous mode) and ad-hoc I installed the latest "Cyanogen 7" rom ( cm_galaxysmtd_full-126.zip, from: http://download.cyanogenmod.com/?type=nightly&device=galaxysmtd)
I don't know how to solve this and I would really need your help. I suspect
that "wpa_supplicat" is to blame for that, but most probably I wrong.
Thanks in advance,
Ps: I should also mention that I start an adhoc network using my laptop. Then two android devices join the adhoc network. The android devices (SGH-I897) join the network without a problem. All the devices can ping each other.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里描述了唯一的解决方案。
http://www.44actions.com/?p=273
only solution for this is described here.
http://www.44actions.com/?p=273