Skip to content

Commit 18ea928

Browse files
authored
Implement Linux HWID retrieval
1 parent 0ac05bd commit 18ea928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keyauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ class others:
301301
@staticmethod
302302
def get_hwid():
303303
if platform.system() != "Windows":
304-
return "None"
304+
return subprocess.Popen('hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.hardware.uuid'.split())
305305

306306
cmd = subprocess.Popen(
307307
"wmic useraccount where name='%username%' get sid", stdout=subprocess.PIPE, shell=True)

0 commit comments

Comments
 (0)