def change_productid(self): """Randomizes Windows ProductId. The Windows ProductId is occasionally used by malware to detect public setups of Cuckoo, e.g., Malwr.com. """ value = "{0}-{1}-{2}-{3}".format(random_integer(5), random_integer(3), random_integer(7), random_integer(5)) set_regkey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "ProductId", REG_SZ, value)
def change_productid(self): """Randomizes Windows ProductId, which is occasionally used by malware to detect public setups of Cuckoo, e.g. Malwr.com. """ key = OpenKey( HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", 0, KEY_SET_VALUE ) value = "{0}-{1}-{2}-{3}".format( random_integer(5), random_integer(3), random_integer(7), random_integer(5) ) SetValueEx(key, "ProductId", 0, REG_SZ, value)