且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

获取ASP.NET网站用户的MAC

更新时间:2023-12-02 15:40:16

如果您的网站是可信的,你可以在IE中做到这一点:结果
http://www.devarticles.com/c/a/JavaScript/Advanced-JavaScript-with-Internet-Explorer-Retrieving-Networking-Configuration-Information/1/

If your site is trusted, you can do this in IE:
http://www.devarticles.com/c/a/JavaScript/Advanced-JavaScript-with-Internet-Explorer-Retrieving-Networking-Configuration-Information/1/

我不希望它的任何典型的游客,只要用户谁是你已​​经控制,就像在本地网络上的系统工作。可能有第二种方法在IE中,如果你能找到产生使用CoCreateGuid一个GUID一个共同的ActiveX。它的GUID的一部分返回MAC地址。我不会赌找到一个常用的安装虽然

I wouldn't expect it to work for any typical visitors, just users who's systems you already control, like on your local network. There may be a second way in IE if you can find a common activex that generates a guid using CoCreateGuid. It returns the mac address in part of the guid. I wouldn't bet on finding one that's commonly installed though.