cpuid
Execute any x86 cpuid
call. You pass two arguments: eax
and ecx
register values and get back a response
of 4 numbers in an array, the response returned as an array [eax, ebx, edx, ecx]
.
Example, when you execute 0, 0
call Intel returns GenuineIntel
string
in last three registers:
var cpuid = ;var temp = ;console; // [ 13, 1970169159, 1231384169, 1818588270 ]
Now let's create a string out of that:
var str = '';forvar i = 1; i < templength; i++ var reg = tempi; str += String; str += String; str += String; str += String;console; // GenuineIntel
If you run under some virtual machine, those usually use 0x40000000
address
to return their name:
temp = ;var str = '';forvar i = 0; i < templength; i++ var reg = tempi; str += String; str += String; str += String; str += String;console; // @VBoxVBoxVBox