commit c42f7864c8e47d51f49bee7d91069e869077765b Author: qubiaobiao <3294694717@qq.com> Date: Thu Feb 22 14:19:38 2024 +0800 GUID查看器 diff --git a/MachineGuid.txt b/MachineGuid.txt new file mode 100644 index 0000000..384ac32 --- /dev/null +++ b/MachineGuid.txt @@ -0,0 +1 @@ +1392bb81-8287-4192-8f6e-7851ef2a22ef \ No newline at end of file diff --git a/guidfindder.exe b/guidfindder.exe new file mode 100644 index 0000000..2641312 Binary files /dev/null and b/guidfindder.exe differ diff --git a/guidfindder.js b/guidfindder.js new file mode 100644 index 0000000..3c52bbc --- /dev/null +++ b/guidfindder.js @@ -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(`创建成功!`); + }); + }); \ No newline at end of file diff --git a/使用说明.txt b/使用说明.txt new file mode 100644 index 0000000..9b77883 --- /dev/null +++ b/使用说明.txt @@ -0,0 +1,5 @@ +点击运行文件 +guidfindder.exe +然后即可在文件 +MachineGuid.txt +中查看到电脑的 Guid \ No newline at end of file