mercredi 29 avril 2020

When I type the trigger string the if statement just closes the Command Prompt (batch)

I made this fake hacking console, and when I type help, the if statement doesn't work?

@echo off
title Hacking Console
color 0a
:start
cls
echo Hacking Console, Unpatched, 2020
echo Type help for Help
echo.
set /p cmd = C://User/user/Windows/portaccess/set/

if %cmd% = "help" {
    echo Help Menu
    echo access.database.19223 Accesses the database of the U.S. army
    echo access.files.19223 Accesses the files of the U.S. army
    echo ddos.19223 DDoS the U.S. army
    echo bank.get.usd Gets a amount of money up to 100.000.000 USD
    echo help Gets Help 
    pause
    goto start
}


echo UNKNOWN SYNTAX. TYPE help FOR HELP
timeout /t 3 /nobreak
goto start

pause

Aucun commentaire:

Enregistrer un commentaire