Skip to content

Instantly share code, notes, and snippets.

@snappyJack
snappyJack / auto_run_bypass_detect.py
Last active July 7, 2020 06:40
Auto run bypass detect
import winreg
def obtain():
try:
key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Classes\mscfile\shell\open\command")
i = 0
while 1:
name, value, type1 = winreg.EnumValue(key, i)
print('fileless uac bypass using eventvwr exe and registry hijacking')