Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- ::Enable/Disable System authority level CMD ::
- ::Be cautious - This CMD is EXTREMELY powerful ::
- ::Created by RU$$ [http://russdev.mooo.com/] ::
- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- ::Instructions - ::
- ::Run the script then lock your account. ::
- ::Open the narrator at the bottom left. ::
- ::An CMD window will open. Type "whoami" too see Ur status ::
- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- @echo off
- title Enable/Disable System authority level CMD
- ::Check if CMD is open as admin
- NET SESSION >nul 2>&1
- IF %ERRORLEVEL% EQU 0 (goto :BEGIN) ELSE (goto :NOTADMIN)
- :NOTADMIN
- cls
- echo ERROR: You need to run as an Administrator!
- echo.
- pause
- exit.
- ::Code start
- :BEGIN
- cls
- if exist "C:\Windows\System32\UtilmanBKUP.exe" (GOTO :PRE-ENABLED) else (GOTO :PRE-DISABLED)
- ::Check if Disable Continue
- :PRE-ENABLED
- cls
- SET INPUT=
- SET /P INPUT= Do you wish to remove Sys CMD? (Y/N):
- IF /I '%INPUT%'=='Y' goto :REMOVE
- IF /I '%INPUT%'=='y' goto :REMOVE
- IF /I '%INPUT%'=='N' exit
- IF /I '%INPUT%'=='n' exit
- goto :PRE-ENABLED
- ::Remove files
- :REMOVE
- cd C:\Windows\System32
- DEL cmd2.exe
- DEL Utilman.exe
- rename UtilmanBKUP.exe Utilman.exe
- cls
- echo SUCCESS: The files have been restored to defaults.
- echo.
- pause.
- exit.
- ::Check if Enable Continue
- :PRE-DISABLED
- cls
- SET INPUT=
- SET /P INPUT= Do you wish to add Sys CMD? (Y/N):
- IF /I '%INPUT%'=='Y' goto :ADD
- IF /I '%INPUT%'=='y' goto :ADD
- IF /I '%INPUT%'=='N' exit
- IF /I '%INPUT%'=='n' exit
- goto :PRE-DISABLED
- ::Add files
- :ADD
- ::Take ownership
- takeown /f cmd.exe
- icacls cmd.exe /grant administrators:f
- takeown /f Utilman.exe
- icacls Utilman.exe /grant administrators:f
- copy cmd.exe cmd2.exe
- copy Utilman.exe UtilmanBKUP.exe
- DEL Utilman.exe
- rename cmd2.exe Utilman.exe
- cls
- echo SUCCESS: The files have been modified.
- echo.
- pause.
- exit.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement