Add spoof ID for supported GPU missing in macOS

This commit is contained in:
Hoang Hong Quan
2024-10-10 18:34:19 +07:00
parent 9439fa3921
commit ec1c4d35fe
2 changed files with 19 additions and 0 deletions
+7
View File
@@ -95,6 +95,13 @@ class Utils:
def int_to_hex(self, number):
return format(number, '02X')
def to_little_endian_hex(self, hex_string):
hex_string = hex_string.lower().lstrip("0x")
little_endian_hex = ''.join(reversed([hex_string[i:i+2] for i in range(0, len(hex_string), 2)]))
return little_endian_hex.upper()
def string_to_hex(self, string):
return ''.join(format(ord(char), '02X') for char in string)