Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title System executor.
- net session 2>nul >nul || call :elevate
- echo Do you want to continue? Press any key to continue.
- pause>nul
- set /p File="Batch File to execute: "
- copy "%File%" "C:\SYSTEMEXPLOITFILE.bat" 2>nul >nul
- echo @echo off>C:\SYSTEMEXPLOIT.bat
- echo reg add HKLM\SYSTEM\Setup /v OOBEInProgress /t REG_DWORD /d 0 /f>>C:\SYSTEMEXPLOIT.bat
- echo reg add HKLM\SYSTEM\Setup /v SetupPhase /t REG_DWORD /d 0 /f>>C:\SYSTEMEXPLOIT.bat
- echo reg add HKLM\SYSTEM\Setup /v SetupType /t REG_DWORD /d 0 /f>>C:\SYSTEMEXPLOIT.bat
- echo reg add HKLM\SYSTEM\Setup /v CmdLine /t REG_SZ /d "" /f>>C:\SYSTEMEXPLOIT.bat
- echo cmd /c C:\SYSTEMEXPLOITFILE.bat>>C:\SYSTEMEXPLOIT.bat
- echo del C:\SYSTEMEXPLOITFILE.bat>>C:\SYSTEMEXPLOIT.bat
- echo shutdown /r /t 1 >>C:\SYSTEMEXPLOIT.bat
- echo echo Changes complete, restarting now...>>C:\SYSTEMEXPLOIT.bat
- echo del C:\SYSTEMEXPLOIT.bat>>C:\SYSTEMEXPLOIT.bat
- reg add HKLM\SYSTEM\Setup /v OOBEInProgress /t REG_DWORD /d 1 /f>nul
- reg add HKLM\SYSTEM\Setup /v SetupPhase /t REG_DWORD /d 4 /f>nul
- reg add HKLM\SYSTEM\Setup /v SetupType /t REG_DWORD /d 2 /f>nul
- reg add HKLM\SYSTEM\Setup /v CmdLine /t REG_SZ /d "C:\Windows\System32\cmd.exe /k C:\SYSTEMEXPLOIT.bat" /f>nul
- echo Changes complete, press any key to restart.
- pause>nul
- shutdown /r /t 0
- exit
- :elevate
- echo Requesting Administrator privledges, please wait for UAC.
- powershell /c start-process -verb runAs \"%~s0\"
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement