domingo, 11 de março de 2012

this is the code, is just copy that to your notepad and save it as .bat
play and enjoy

@echo off
title **password cmd game 1.0**
color 03
echo.
echo                   ##         ##         ##         ##
echo                  ####       ####       ####       ####
echo                 ##  ##     ##  ##     ##  ##     ##  ##
echo                ## :D ##   ## :D ##   ## :D ##   ## :D ##
echo               ******************************************
echo              **                                        **
echo             **   hey this little program will ask you   **
echo            **   for 8 passwords (commands that I do),    **      
echo           **    I will give you the first password:       **
echo            **   It's: "users"                            **
echo             **   now you find the other 7 passwords     **
echo              **                                        **
echo               ******************************************
echo                **              By: Djjark            **
echo                 **************************************
echo.
set /p helpyn="º    press 1 to play    º    press 2 for instructions    º
if /i "%HelpYN%"=="2" (
cls
echo.
echo          ###############  INSTRUCTIONS  #################
echo          # Hey, this program will theach you some       #
echo          #  commands in command prompt.                 #
echo          # This is a very basic program/game, you need  #
echo          #  to put passwords in the password's space,   #
echo          #  the passwords are the commands, but not in  #
echo          #  it's original form.                         #
echo          # When the program/game start's I give you the #
echo          #  first password and you will need to find the#
echo          #  other passwords. In the end I give you the  #
echo          #  solutions, when you pass all the game.      #
echo          ################################################
echo.
pause
)
cls

@echo off
echo.
echo ***********************************************
echo hint 1: hey, i only give you the first password
echo         the rest you discover
echo         the pass is "users" fo the command
echo         net user
echo.
echo                   good luck!!
echo ***********************************************
echo.
:Password1
Set input=
set /p input=1º Password:
if %input%==users goto YES1
if not %input%==users goto NO1
:Yes1
net user
cls
echo.
echo                          ***********************
echo                          !!! congratulations !!!
echo                          ***********************
echo.
echo                          ************************
echo                           you have just discover
echo                          !! the first password !!
echo                          ************************
echo.
echo.
echo.
echo *************************************************
echo hint 2: this password is for open folders (dir's)
echo.
echo                    good luck!!
echo *************************************************
echo.
goto :Password2
pause >nul
:NO1
echo.
echo incorrect passoword
echo try again :D
echo.
goto :password1

:Password2
Set input=
set /p input=2º Password:
if %input%==folder goto YES2
if not %input%==folders goto NO2
:Yes2
dir
cls
echo.
echo                           ***********************
echo                           !!! congratulations !!!
echo                           ***********************
echo.
echo                          *************************
echo                            you have just discover
echo                          !! the second password !!
echo                          *************************
echo.
echo.
echo.
echo *********************************************
echo hint 3: this password is for get all commands
echo         in cmd, but it isn't "help".
echo.
echo                   good luck!!
echo *********************************************
echo.
goto :password3
pause >nul
:NO2
echo.
echo incorrect passoword
echo try again :D
echo.
goto :password2

:Password3
Set input=
set /p input=3º Password:
if %input%==commands goto YES3
if not %input%==commands goto NO3
:Yes3
help
cls
echo.
echo.
echo                          ***********************
echo                          !!! congratulations !!!
echo                          ***********************
echo.
echo                          ************************
echo                           you have just discover
echo                          !! the third password !!
echo                          ************************
echo.
echo.
echo.
echo ******************************************
echo hint 4: this is a bit hard password.
echo         is dir + tree
echo.
echo                   good luck!!
echo ******************************************
echo.
goto :password4
pause >nul
:NO3
echo.
echo incorrect passoword
echo try again :D
echo.
goto :password3

:Password4
Set input=
set /p input=4º Password:
if %input%==dirtree goto YES4
if not %input%==dirtree goto NO4
:Yes4
tree
cls
echo.
echo                          ***********************
echo                          !!! congratulations !!!
echo                          ***********************
echo.
echo                         *************************
echo                          you have just discover
echo                         !! the fourth password !!
echo                         *************************
echo.
echo.
echo.
echo ******************************************
echo hint 5: this password is to see the task
echo         manager in cmd
echo.
echo                   good luck!!
echo ******************************************
echo.
goto :password5
pause >nul
:NO4
echo.
echo incorrect passoword
echo try again :D
echo.
goto :password4

:Password5
Set input=
set /p input=5º Password:
if %input%==task goto YES5
if not %input%==task goto NO5
:Yes5
tasklist
cls
echo.
echo                          ***********************
echo                          !!! congratulations !!!
echo                          ***********************
echo.
echo                          ************************
echo                           you have just discover
echo                          !! the fifth password !!
echo                          ************************
echo.
echo.
echo.
echo ***************************************
echo hint 6: This is a really easy password.
echo         It's for add a new color to cmd
echo         the colors are blue and white
echo         the password for the colors are
echo         in numbers (ex: color25-purple
echo         and green).
echo.
echo                good luck!!
echo ***************************************
echo.
goto :password6
pause >nul
:NO5
echo.
echo incorrect passoword
echo try again :D
echo.
goto :password5

:Password6
Set input=
set /p input=6º Password:
if %input%==color17 goto YES6
if not %input%==color17 goto NO6
:Yes6
color 17
cls
echo.
echo                          ***********************
echo                          !!! congratulations !!!
echo                          ***********************
echo.
echo                          ************************
echo                           you have just discover
echo                          !! the sixth password !!
echo                          ************************
echo.
echo.
echo.
echo ***********************************************
echo hint 7: this password is for command "net stat"
echo         but isn't "net stat"
echo.
echo                good luck!!
echo ***********************************************
echo.
goto :password7
pause >nul
:NO6
echo.
echo incorrect passoword
echo try again :D
echo.
goto :password6

:Password7
Set input=
set /p input=7º Password:
if %input%==stats goto YES7
if not %input%==stats goto NO7
:Yes7
net stat
cls
echo.
echo                          ***********************
echo                          !!! congratulations !!!
echo                          ***********************
echo.
echo                         **************************
echo                           you have just discover
echo                         !! the seventh password !!
echo                         **************************
echo.
echo.
echo.
echo **************************************
echo hint 8: this password is for clean the
echo         command prompt window, but it
echo         isn't "cls".
echo.
echo                good luck!!
echo **************************************
echo.
pause >nul
goto :password8

:NO7
echo.
echo incorrect passoword
echo try again :D
echo.
pause >nul
goto :password7

:Password8
Set input=
set /p input=8º Password:
if %input%==clean goto YES8
if not %input%==clean goto NO8
:Yes8
cls
echo.
echo *************************************************
echo hint 8: this password do the same thing as "cls"
echo.
echo                    good luck!!
echo *************************************************
echo.
cls
goto :end0
:NO8
echo.
echo incorrect passoword
echo try again :D
echo.
goto :password8

:End0
echo                          ***********************
echo                          !!! congratulations !!!
echo                          ***********************
echo.
echo                           *********************
echo                           !!! you have just !!!
echo                           !! passed the game !!
echo                           *********************
goto :end2
pause
:End
echo.
echo                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
echo                      @ ****************************** @
echo                      @ thanks for trying this program @
echo                      @                                @
echo                      @ bye bye             By: Djjark @
echo                      @ ****************************** @
echo                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
goto :end2

:End2
echo.
echo                                        @@@@@
echo                                      @@     @@
echo                                    @@   @@@  @@
echo                                  @@@    @@@   @@@
echo                                @@    @@@@@@@@@   @@
echo                          @@@@@@@@@@@@@@@@@@@@@@@@@@@
echo                                @@   "O"     "O"  @@
echo                                  @@             @@
echo                                  @@             @@
echo                                   @@  @     @  @@
echo                                    @@  @   @  @@
echo                                     @@  @@@  @@
echo                                       @@    @@
echo                                         @@@@
echo.
pause
goto :end3

:End3
echo.
echo                         #####--solutions--#####
echo                         #      1- users       #
echo                         #      2- folders     #
echo                         #      3- commands    #
echo                         #      4- dirtree     #
echo                         #      5- task        #
echo                         #      6- color17     #
echo                         #      7- stats       #
echo                         #      8- clean       #
echo                         #######################
echo.
pause

Sem comentários:

Enviar um comentário