search

Home  >  Q&A  >  body text

android - 在Wi-Fi 热点模式下,如何获取周围的打开wifi 的终端设备列表

stackoverflow 上看到一个 Android:Hotspot is not detecting all ...

Android 手机可以通过读取/proc/net/arp 文件获取设备列表,但是这些设备是需要成功连上wifi 的。Ubuntu 上的hostapd 也可以。看系统日志,终端设备的MAC 地址是终端设备主动连接之后, dnsmasq 进程获得的。

有没有办法, 获取不一定会连上热点的周围所有设备列表?就是说能否让AP 主动扫描设备?

如果Android 上直接有办法更好,毕竟不需要电源,使用方便。如果是其它平台,PC或者修改路由器的固件(如OpenWrt, Tomato)达到目标的办法或者思路, 也非常欢迎。

天蓬老师天蓬老师2812 days ago1042

reply all(5)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 11:07:21

    Solved, as long as there is network communication, wireshark can hear the data, and the MAC addresses of both parties are visible.

    On the Android platform, there is also a ported version of wireshark, Shark for Root

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 11:07:21

    May I ask what platform the poster implemented it on, an Android phone or a computer?

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:07:21

    I have this technology, and I am currently working on it for each client. It will not be made public for the time being. You can contact qq: 1413031398

    reply
    0
  • PHPz

    PHPz2017-04-17 11:07:21

    Passive WiFi Tracking http://edwardkeeble.com/2014/02/passive-wifi-tracking/ Written in PYTHON and can run on Android OpenWrt, you’re welcome. . .

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 11:07:21

    Currently I want to implement this function on openwrt, please communicate

    reply
    0
  • Cancelreply