Can I find the BSSID (MAC address) of a wireless access point from an HTTP request?

天大地大妈咪最大 提交于 2019-12-08 07:07:15

问题


Let's say someone is setting in a coffee shop wireless connected to the internet and they send an HTTP request to johnsveryownserver.com. Server-side, is there any way that I can determine the MAC address of the wireless access point that they are connected to? (Note that I am not interested in the MAC address of their machine.)

If I can't do this with a plain old HTTP request, is there anything I can do in-browser (e.g. via javascript) in order to scan for the MAC addresses of any nearby wireless access points? This might even be better because I can collect all nearby wireless MAC addresses.

I'm trying to avoid having the user download a plugin or an independent executable.


回答1:


No, you can't. Using a plugin is your only option (it may be possible with Java, but that's outside my area of expertise).




回答2:


I'll say this might be possible because there are people far smarter than me.

However, it is hard enough to get the local MAC address by querying WMI using client side scripting, let alone attempt to query past the local machine. I'm confident in saying that this is not currently possible to accomplish, and if you do, you'll be missing out on a large set of data due to browser security settings halting your script.



来源:https://stackoverflow.com/questions/4388538/can-i-find-the-bssid-mac-address-of-a-wireless-access-point-from-an-http-reque

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!