Skip to content

Instantly share code, notes, and snippets.

@FlyTechVideos
FlyTechVideos / claimer.py
Last active March 11, 2024 18:46
Sets all DWORD/QWORD registry values for which the user has permission to edit to 0.
import winreg
VALUE_TO_WRITE = 0x69
root_dict = {
'HKEY_CLASSES_ROOT': winreg.HKEY_CLASSES_ROOT,
'HKEY_CURRENT_USER': winreg.HKEY_CURRENT_USER,
'HKEY_LOCAL_MACHINE': winreg.HKEY_LOCAL_MACHINE,
'HKEY_USERS': winreg.HKEY_USERS,