简体   繁体   English

有没有办法让Android WIFI(机器人手机)进入混杂的监控模式?

[英]Is there any way to put Android WIFI (droid handset) into promiscuous monitoring mode?

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. 对于几年前的计算机科学信息战类,我编写了一个python脚本,运行libpcap混杂数据包捕获文件来解析Facebook聊天流量(以明文形式传递的earlang元组),并认为一个有趣的项目是移植程序到Android。

I would like to rewrite it in Java but can't find any information about packet capturing directly on the handset. 我想用Java重写它,但无法直接在手机上找到有关数据包捕获的任何信息。

As far as I'm aware, there is no way to put the Wifi NIC into monitoring mode from the public API. 据我所知,没有办法从公共API将Wifi NIC置于监控模式。 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. 但是,根据手机使用的设备,如果您具有root访问权限,则可以让系统将其置于监控模式。

Take a look at the code in the android-wifi-tether project: 看一下android-wifi-tether项目中的代码:

http://code.google.com/p/android-wifi-tether/source/browse/?r=304#svn/trunk%3Fstate%3Dclosed 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. res / raw /目录中有一些Linux二进制文件和配置文件,它们被复制到位并由Java中的应用程序控制。

Remember that you will need to root the phone for this to work. 请记住,您需要根据手机才能使其正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM