SELECT data from registry where key ='HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography'AND name='MachineGuid';
# 或者
SELECT data FROM registry WHERE path='HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography\\MachineGuid'
查询系统版本号和windows版本
方法一 直接查询
1
SELECT uuid, computer_name, hardware_model, hardware_serial FROM system_info;
方法二 通过注册表
1 2 3 4 5 6 7 8 9 10 11 12
SELECT data FROM registry WHERE key ='HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion' AND name IN('CurrentMajorVersionNumber','CurrentMinorVersionNumber', 'CurrentBuildNumber', 'ProductName') ORDERBY CASE name WHEN'ProductName'THEN1 WHEN'CurrentMajorVersionNumber'THEN2 WHEN'CurrentMinorVersionNumber'THEN3 WHEN'CurrentBuildNumber'THEN4 ELSE3 END;