Page 1 of 1

Password Cracking Challenge/Game

Posted: 28 Feb 2013 14:42
by Reborn
Hello, I have made a batch file with a fairly secure password, see if you can crack it?

Code: Select all

@echo off
setlocal enabledelayedexpansion
for /f "tokens=1" %%a in (securepassword.bat) do set pass=%%a
:getpassword
cls
echo.
echo If you can crack the password, leave your name, then try again.
echo.
set /p upass=Password:
if "%upass%"=="%pass%" goto getname
cls
echo Incorrect Password!
pause
goto getpassword
:getname
cls
echo.
set /p name=Name:
if "%name%"=="" exit
echo %name% >> securepassword.bat
exit
----------------------------------
People who have cracked the password:


EDITED: Link removed and code posted here by Squashman

Re: Password Cracking Challenge/Game

Posted: 28 Feb 2013 15:02
by jeb
I know the password :)

Code: Select all

"=="" goto getname & REM  


jeb

Re: Password Cracking Challenge/Game

Posted: 28 Feb 2013 18:37
by Aacini
If the Batch file is called "securepassword.bat", then the first time the password is "People", the next time is the first name of the person that cracked the password the last time, and so on...

Antonio

Re: Password Cracking Challenge/Game

Posted: 01 Mar 2013 01:36
by Reborn
Aacini wrote:If the Batch file is called "securepassword.bat", then the first time the password is "People", the next time is the first name of the person that cracked the password the last time, and so on...

Antonio

Nice. You got it.

Re: Password Cracking Challenge/Game

Posted: 01 Mar 2013 04:06
by jeb
Hi Reborn,

do you test my password?

It's the general key, as it uses command injection.

If you want to disable this, you need to switch to delayed expansion instead of percent expansion

jeb

Re: Password Cracking Challenge/Game

Posted: 01 Mar 2013 12:13
by Reborn
jeb wrote:Hi Reborn,

do you test my password?

It's the general key, as it uses command injection.

If you want to disable this, you need to switch to delayed expansion instead of percent expansion

jeb

mm, thanks.