Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. @echo off
  2. set counter=5
  3. :CREDS
  4. cls
  5. if %counter% equ 0 goto :LOCKOUT
  6. if %counter% lss 5 echo Password incorrect, %counter% attempts left
  7. set /p un=Enter your username:
  8. set /p pw=Enter your password:
  9. if %un%==correctusername (
  10. if %pw%==correctpassword goto :ALLOK
  11. )
  12. goto :WRONG
  13.  
  14. :WRONG
  15. set /a counter-=1
  16. goto :CREDS
  17.  
  18. :ALLOK
  19. echo Creds ok, do whatever
  20. pause >nul
  21. exit >nul
  22.  
  23. :LOCKOUT
  24. echo ACCOUNT LOCKED OUT TIMEOUT 86400
  25. timeout /t 86400
  26. goto :CREDS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement