Skip to content

Instantly share code, notes, and snippets.

View Sepehr0Day's full-sized avatar

Sepehr0Day Sepehr0Day

View GitHub Profile
@Sepehr0Day
Sepehr0Day / UAC.py
Created April 7, 2024 04:36
UAC Enable/Disable
import winreg
def disable_uac():
try:
# Disabling UAC in Windows can
# expose your system to unauthorized
# access and malware threats.
# Proceed with caution as it compromises
# your system's security.
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", 0, winreg.KEY_WRITE)