Jump to content
Fórum Script Brasil
  • 0

Arquivo Batch Com Usuário E Senha setados


Question

SCRIPT:

 

@echo off & setlocal DisableDelayedExpansion
set counter=4
:senha
Title %~n0
Mode 50,5 & Color 0e
if %counter% equ 0 goto :senha2
set /p input="Enter Username: "

set "psCommand=powershell -Command "$pword = read-host 'Enter password' -AsSecureString ; ^
   $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^
    [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)""
     for /f "usebackq delims=" %%p in (`%psCommand%`) do set password=%%p
)

if %input%==joao123 (
if %password%==1234 goto :Senha4
)
goto :senha3

:senha2
echo
echo Account Locked Out Timeout In 5
timeout /t 5
exit

:senha3
echo,
set /a counter -=1
echo.
@echo on
@echo off
color 40
echo USERNAME OR PASSWORD INCORRETO(S)
echo.
if %counter% lss 4 echo %counter% tentativas restantes
pause
goto senha

:senha4
echo Username and Passwords corretos!
color 0a
pause
 

Edited by nxcau
Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      148689
    • Total Posts
      644523
×
×
  • Create New...