amiunique icon indicating copy to clipboard operation
amiunique copied to clipboard

detect CPUID using JavaScript

Open adrelanos opened this issue 2 years ago • 3 comments

Could you please add a test using https://github.com/streamich/cpuid that shows CPUID information?

adrelanos avatar Jul 28 '22 12:07 adrelanos

Hi Patrick! Unfortunately, it seems to me this is something that can only be done on the server side as it relies on an NPM module whch itself relies on LibCPUID. It does not seem possible to me to execute that in a browser as the browser does not have access to this information.

plaperdr avatar Jul 28 '22 12:07 plaperdr

Hi Pierre, thank you for your consideration!

In https://github.com/streamich/cpuid/issues/1 the developer is saying that this is possible with pure JS, i.e. without nodejs, but requires code modifications.

adrelanos avatar Jul 28 '22 13:07 adrelanos

Maybe I am reading this wrong...

@streamich

you just need a way to execute machine code from JavaScript.

I guess that's the critical part.

@plaperdr

It does not seem possible to me to execute that in a browser as the browser does not have access to this information.

adrelanos avatar Jul 28 '22 13:07 adrelanos