Batch HELP - sipher

June 27, 2011 at 04:14:57
Specs: Windows 7
OK. Here is the deal...
I am creating program that should ask for password to proceed\ continue...
The thing is that there are some other people that can easily hack the script like:

@echo off
cls
goto main
:main
cls
echo Please enter password to proceed and hit RETURN:
set /p pss=
if %pss%==unhackablepss goto good
if not exist %pss%==goto bad
:bad
cls
echo BAD PASSWORD
pause
goto main
:good
cls
echo GOOD PASSWORD
pause
goto continue


or:

@echo off
cls
goto main
:main
cls
echo Please enter password to proceed and than hit RETURN:
set /p pss=
сd "c:\Windows\System32\PSS"
if exist %pss%.txt==goto good
if not exist %pss%.txt==goto bad
:bad
cls
echo BAD PASSWORD
pause
goto main
:good
cls
echo GOOD PASSWORD
goto continue

SO... It is SOOOOOO simple to hack......
I found few new commands that i would like to know...
But it is so difficult to understand me...
So i write here :)

HERE IS HOW THE PROGRAM SHOULD WORK:

1. The "SECURITY PROTOCOL" asks for password:
2. It finds and decrypts the file that was set as password one. LIKE:(pss.txt)
3. And THAN... Using a findstr an errorlevels... Checks if the password string exists in text file...

THANK YOU FOR ANY KIND OF INFORMATION
P.S
Sorry for my bad english... I'm from LITHUANIA


See More: Batch HELP - sipher

Report •


#1
June 28, 2011 at 07:50:24
This is what I would do...

@echo off
cls
goto main
:main
cls
set /p pss="Please enter password to proceed and hit RETURN: "
if "%pss%"=="unhackablepss" goto good
else goto bad
:bad
cls
echo BAD PASSWORD
pause
goto main
:good
cls
echo GOOD PASSWORD
pause
goto continue


Report •

#2
September 5, 2011 at 04:32:24
Thankyou...
You really helped me a lot...
But I need a command that would cyoher a text document with the password
typed in...

Report •

#3
September 5, 2011 at 04:48:50
Use a BAT to EXE compiler, so "other people" cannot see your script?

Google for it.

Regards,

Happy is ONE who says I am an OttoMAN.


Report •

Related Solutions

#4
September 5, 2011 at 07:25:46
If you don't want a converter:

@echo off
cls
goto main
set /p corpss=<pss.txt
:main
cls
set /p pss="Please enter password to proceed and hit RETURN: "
if "%pss%"=="%corpss%" goto good
goto bad
:bad
cls
echo BAD PASSWORD
pause
goto main
:good
cls
echo GOOD PASSWORD
pause
goto continue

Simply make a .txt document in the same location of the batch file called pss.txt. Then put in the required password, save and exit.

Mouse could not be found. Click OK to continue.
What to do now?


Report •

#5
September 5, 2011 at 07:29:13
Simply make a .txt document in the same location of the batch file called pss.txt. Then put in the required password, save and exit.

Atleast store the password in a text file that is NOT in the same directory as the batchfile. That's more safe I think.

Regards,

Happy is ONE who says I am an OttoMAN.


Report •

#6
September 30, 2011 at 13:36:22
I always send it to a .crm file. Most people have no idea how to read them and the batch file will still pull the information from it. MUs is 100% right though, turning it into an exe is the best option.This is what I use, it's free and it has a good user interface. Hope this helped

Report •


Ask Question