Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
Reborn
- Posts: 3
- Joined: 28 Feb 2013 14:30
#1
Post
by Reborn » 28 Feb 2013 14:42
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
Last edited by
Reborn on 01 Mar 2013 12:12, edited 1 time in total.
-
jeb
- Expert
- Posts: 1055
- Joined: 30 Aug 2007 08:05
- Location: Germany, Bochum
#2
Post
by jeb » 28 Feb 2013 15:02
I know the password
jeb
-
Aacini
- Expert
- Posts: 1910
- Joined: 06 Dec 2011 22:15
- Location: México City, México
-
Contact:
#3
Post
by Aacini » 28 Feb 2013 18:37
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
-
Reborn
- Posts: 3
- Joined: 28 Feb 2013 14:30
#4
Post
by Reborn » 01 Mar 2013 01:36
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.
-
jeb
- Expert
- Posts: 1055
- Joined: 30 Aug 2007 08:05
- Location: Germany, Bochum
#5
Post
by jeb » 01 Mar 2013 04:06
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
-
Reborn
- Posts: 3
- Joined: 28 Feb 2013 14:30
#6
Post
by Reborn » 01 Mar 2013 12:13
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.