Chrome扩展可以获取mac地址吗? [英] Is it possible to get mac address by Chrome extension?
问题描述
我希望我的扩展程序能够将用户的物理mac地址发送到服务器。
是否有任何要获取Chrome扩展程序中的客户端mac地址?
使用扩展名是绝对不可能的。
您可以通过 chrome.system.network API获得最接近的IP地址和所有网络接口这是铬合金应用程序可用 - 但不包括MAC地址,从Chrome 33。
我们解决了外部命令(Windows上的 .cmd
,linux上的 .sh
)的问题通过本机消息传递API。外部脚本只输出当前的MAC地址。
I want my extension be able to send the users' physical mac address to a server.
Is there any to get the the client mac address in a Chrome extension?
With an extension it is definitely not possible.
The closest you can get is the IP addresses and all network interfaces via the chrome.system.network API that is available to chrome apps - but that doesn't include the MAC address, as of Chrome 33.
We solved the problem with an external command (.cmd
on windows, .sh
on linux) that we call via the native messaging API. The external script simply outputs the current MAC address.
这篇关于Chrome扩展可以获取mac地址吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!