DosTips.com

A Forum all about DOS Batch
It is currently 03 May 2016 02:46

All times are UTC-06:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 28 Feb 2013 14:42 
Offline

Joined: 28 Feb 2013 14:30
Posts: 3
Hello, I have made a batch file with a fairly secure password, see if you can crack it?
Code:
@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.

Top
   
PostPosted: 28 Feb 2013 15:02 
Offline
Expert

Joined: 30 Aug 2007 08:05
Posts: 782
Location: Germany
I know the password :)

Code:
"=="" goto getname & REM  


jeb


Top
   
PostPosted: 28 Feb 2013 18:37 
Offline
Expert

Joined: 06 Dec 2011 22:15
Posts: 1129
Location: México City, México
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


Top
   
PostPosted: 01 Mar 2013 01:36 
Offline

Joined: 28 Feb 2013 14:30
Posts: 3
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.


Top
   
PostPosted: 01 Mar 2013 04:06 
Offline
Expert

Joined: 30 Aug 2007 08:05
Posts: 782
Location: Germany
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


Top
   
PostPosted: 01 Mar 2013 12:13 
Offline

Joined: 28 Feb 2013 14:30
Posts: 3
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: Google [Bot] and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited