GUID查看器

guidfindder
qubiaobiao 2024-02-22 14:19:38 +08:00
commit c42f7864c8
4 changed files with 24 additions and 0 deletions

1
MachineGuid.txt Normal file
View File

@ -0,0 +1 @@
1392bb81-8287-4192-8f6e-7851ef2a22ef

BIN
guidfindder.exe Normal file

Binary file not shown.

18
guidfindder.js Normal file
View File

@ -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(`创建成功!`);
});
});

5
使用说明.txt Normal file
View File

@ -0,0 +1,5 @@
点击运行文件
guidfindder.exe
然后即可在文件
MachineGuid.txt
中查看到电脑的 Guid