Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set counter=5
- :CREDS
- cls
- if %counter% equ 0 goto :LOCKOUT
- if %counter% lss 5 echo Password incorrect, %counter% attempts left
- set /p un=Enter your username:
- set /p pw=Enter your password:
- if %un%==correctusername (
- if %pw%==correctpassword goto :ALLOK
- )
- goto :WRONG
- :WRONG
- set /a counter-=1
- goto :CREDS
- :ALLOK
- echo Creds ok, do whatever
- pause >nul
- exit >nul
- :LOCKOUT
- echo ACCOUNT LOCKED OUT TIMEOUT 86400
- timeout /t 86400
- goto :CREDS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement