MAC addresses in JavaScript

前端 未结 6 1958
抹茶落季
抹茶落季 2020-11-22 06:14

I know that we can get the MAC address of a user via IE (ActiveX objects).

Is there a way to obtain a user\'s MAC address using JavaScript?

6条回答
  •  难免孤独
    2020-11-22 06:20

    I concur with all the previous answers that it would be a privacy/security vulnerability if you would be able to do this directly from Javascript. There are two things I can think of:

    • Using Java (with a signed applet)
    • Using signed Javascript, which in FF (and Mozilla in general) gets higher privileges than normal JS (but it is fairly complicated to set up)

提交回复
热议问题