有没有办法让Android WIFI(droid手机)进入混杂监控模式?
几年前,在计算机科学信息战课程中,我编写了一个 Python 脚本,该脚本在 libpcap 混杂数据包捕获文件上运行,以解析 Facebook 聊天流量(以明文形式传递的 Earlang 元组),并认为一个有趣的项目是移植该程序到安卓。
我想用Java重写它,但找不到任何有关直接在手机上捕获数据包的信息。
For a Computer Science Information Warfare class a few years ago I wrote a python script that ran on libpcap promiscuous packet capture files to parse out facebook chat traffic (earlang tuples passed in clear text), and thought an interesting project would be to port the program to Android.
I would like to rewrite it in Java but can't find any information about packet capturing directly on the handset.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,没有办法从公共 API 将 Wifi NIC 置于监控模式。但是,根据手机使用的设备,如果您具有 root 访问权限,您也许可以让系统将其置于监控模式。
看一下 android-wifi-tether 项目中的代码:
http://code.google.com/p/android-wifi-tether/source/browse/?r=304#svn/trunk%3Fstate%3Dclose
有res/raw/ 目录中是一些 Linux 二进制文件和配置文件,它们被复制到位并由 Java 中的应用程序控制。
请记住,您需要 root 手机才能使用此功能。
As far as I'm aware, there is no way to put the Wifi NIC into monitoring mode from the public API. However, depending on the device used by the phone, you may be able to get the system to put it into monitor mode if you have root access.
Take a look at the code in the android-wifi-tether project:
http://code.google.com/p/android-wifi-tether/source/browse/?r=304#svn/trunk%3Fstate%3Dclosed
There are some Linux binaries and config files in the res/raw/ directory, which are copied into place and controlled by the app in Java.
Remember that you will need to root the phone for this to work.