Sunday, November 16, 2014

Password Protected Command Prompt

This code will make a batch box come up that will say enter authorization code.  The password is 8668.  Enter it and then you can write batch/cmd commands.  To change the password you must change all of the 8668 to your new password.  Hint.  There are 2 8668.

@echo off
title Awesomeness
color 0a
:login
cls
@echo Enter authorization code.
set /p auth1=
If %auth1% EQU 8668 goto enter
If %auth1% NEQ 8668 goto login
:enter
cls
@echo Login successful
pause
:command
cls
@echo Enter a command.
set /p c=
%c%
pause
cls
@echo Command completed successfully.
pause
goto command

No comments:

Post a Comment