Skip to content

Commit b92b20e

Browse files
committed
Python2 fix in #11
1 parent e8195e5 commit b92b20e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cryptolens_python2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,12 @@ def GetMachineCode():
288288
Get a unique identifier for this device.
289289
"""
290290

291-
if "Windows" in platform.platform().lower():
291+
if "windows" in platform.platform().lower():
292292
return HelperMethods.get_SHA256(HelperMethods.start_process(["cmd.exe", "/C", "wmic","csproduct", "get", "uuid"]))
293-
elif "Darwin" in platform.platform().lower():
293+
elif "darwin" in platform.platform().lower():
294294
res = HelperMethods.start_process(["system_profiler","SPHardwareDataType"]).decode('utf-8')
295295
HelperMethods.get_SHA256(res[res.index("UUID"):].strip())
296-
elif "Linux" in platform.platform(HelperMethods.compute_machine_code()):
296+
elif "linux" in platform.platform(HelperMethods.compute_machine_code()):
297297
return HelperMethods.get_SHA256(HelperMethods.compute_machine_code())
298298
else:
299299
return HelperMethods.get_SHA256(HelperMethods.compute_machine_code())

0 commit comments

Comments
 (0)