# Wizard Kit: Settings - Cleanup import re import psutil try: import winreg except ModuleNotFoundError: if psutil.WINDOWS: raise # d7II D7_HKCR_CLEANUP = { r'batfile\shell\!!RunWithParms': {'Recurse': True}, r'batfile\shell\{0001B4FD-9EA3-4D90-A79E-FD14BA3AB01D}': {'Recurse': True}, r'cmdfile\shell\!!RunWithParms': {'Recurse': True}, r'cmdfile\shell\{0001B4FD-9EA3-4D90-A79E-FD14BA3AB01D}': {'Recurse': True}, r'exefile\shell\!!RunWithParms': {'Recurse': True}, r'exefile\shell\ResourceHacker': {'Recurse': True}, r'regfile\shell\!!RunWithParms': {'Recurse': True}, r'regfile\shell\{0001B4FD-9EA3-4D90-A79E-FD14BA3AB01D}': {'Recurse': True}, } D7_HKCU_CLEANUP = { r'Software\Malwarebytes': {'Recurse': False}, } D7_HKLM_CLEANUP = { r'Software\Emsisoft': {'Recurse': False}, } # Regex DESKTOP_ITEMS = re.compile( r'^(JRT|RKill|sc-cleaner|Transfer_Log)', re.IGNORECASE, ) # Registry HKU = winreg.HKEY_USERS HKCR = winreg.HKEY_CLASSES_ROOT HKCU = winreg.HKEY_CURRENT_USER HKLM = winreg.HKEY_LOCAL_MACHINE UAC_DEFAULTS_WIN7 = { r'Software\Microsoft\Windows\CurrentVersion\Policies\System': { 'DWORD Items': { 'ConsentPromptBehaviorAdmin': 5, 'EnableLUA': 1, 'PromptOnSecureDesktop': 1, }, }, } UAC_DEFAULTS_WIN10 = { r'Software\Microsoft\Windows\CurrentVersion\Policies\System': { 'DWORD Items': { 'ConsentPromptBehaviorAdmin': 5, 'ConsentPromptBehaviorUser': 3, 'EnableInstallerDetection': 1, 'EnableLUA': 1, 'EnableVirtualization': 1, 'PromptOnSecureDesktop': 1, }, }, } if __name__ == '__main__': print("This file is not meant to be called directly.") # vim: sts=2 sw=2 ts=2