GUID查看器
commit
c42f7864c8
|
@ -0,0 +1 @@
|
||||||
|
1392bb81-8287-4192-8f6e-7851ef2a22ef
|
Binary file not shown.
|
@ -0,0 +1,18 @@
|
||||||
|
const child_process = require('child_process');
|
||||||
|
const fs = require('fs');
|
||||||
|
|
||||||
|
const keyPath = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography';
|
||||||
|
|
||||||
|
child_process.exec(`REG QUERY ${keyPath} /v MachineGuid`,function(error,stdout,stderr){
|
||||||
|
console.log('stderr:'+stderr);
|
||||||
|
if(error != null){
|
||||||
|
console.log('exec error:'+error);
|
||||||
|
return
|
||||||
|
}
|
||||||
|
fs.writeFile('./MachineGuid.txt', stdout.slice(83,119), (error) => {
|
||||||
|
if(error){
|
||||||
|
console.log(`创建失败:${error}`);
|
||||||
|
}
|
||||||
|
console.log(`创建成功!`);
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in New Issue