Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: pasword protection  (Read 3588 times)

0 Members and 1 Guest are viewing this topic.

zeroburn

    Topic Starter


    Hopeful

  • Knowlege will take you further than any guide
  • Thanked: 2
    • Yes
    • Jared Kat Enterprises
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 7
pasword protection
« on: October 21, 2010, 06:32:44 PM »
Hi to all.

I am kinda a biginer, and i am error prone with the writing of batch files.
I have written a program that is sopposed to open a hidden folder, on my usb memory device I made it work once, but i accidentally erased a part of it, but it worked before i erased.

The file goes like this...

echo off
color 0c
title lOGIN



echo             000PASSWORD0  000
echo           00000000000000   0000
echo         00000000000000000   0000000
echo          0000000000000000000   0000000000
echo        000000000000000000000    0000000000
echo       00000000000000000000000   00000000htp0
echo      000000000000000000          0000000htp00
echo       0000000000000000000          0000HTP000000
echo      0000000000000000000            000HTP0000000
echo    0000000000000000000            000000HTP0000
echo   00000000000000000000           0000000HTP0000
echo   000000000  000 000000     0000  00000000000000
echo  0000000000  00   00000      00000000000000000000
echo  000000000        00000       0000000000000000000
echo  000000000         00000       0000000000 0000000
echo  000000000         00000           00000  0000000
echo  000000000000     000000                  0000000
echo  000000000000      00000                00000000
echo  000000000000       000                0000000000
echo   00000000000                         0000000000
echo    000000                            00000000000
echo    0000000                               000000
echo     0000000                            0000000
echo      00000000                         00000000
echo       00000000                   00000000000
echo        0000000000000         00000000000000
echo          000all_files_will_be_deleted0000
echo            0after_3_incorect attempts00
echo               0000000WILLBURN000000


echo Welcome, zERoBurN
echo Continue?
pause

cls
echo sensitive information
ECHO pasword required

:password
set input= password =
set/p input=password (input then press enter):
if %input%==willburnyou goto YES
if not %input%==willburn goto NO

:YES
start "allinfo"
exit


:no

echo incorrect password....
pause

cls
echo sensitive information
ECHO pasword required

:password
set input= password =
set/p input=password (input then press enter):
if %input%==willburnyou goto YES
if not %input%==willburn goto next1


next1
echo incorrect password....
pause

cls
echo sensitive information
ECHO pasword required

:password
set input= password =
set/p input=password (input then press enter):
if %input%==willburnyou goto YES
if not %input%==willburn goto next2

:next2
echo incorect password

pause


echo you have been terminated
echo This file and all subfoders are now deleted
del allinfo\access.bat
shutdown -i
pause



I was also having trouble with getting it to shutdown. any help would be nice, or anything you think i should add. the reason for the no directory name is that computers change the name of the directory a lot, so i want it universal, this feature worked before.

and the immage at the biggining looks deformed, but that is the diference between notepad and this.\

Thanks for all the help
I consider myself a hacker. Not in the way of "I can break into your facebook" but in the way, I like to learn as much as I can, about anything i can. I don't just like having things fixed, I like to understand why it was broken and why a particular solution fixed it. It is just how I am, and how I will always be. As teachers have said before, you cant learn if you don't figure it out in your own mind.

zeroburn

    Topic Starter


    Hopeful

  • Knowlege will take you further than any guide
  • Thanked: 2
    • Yes
    • Jared Kat Enterprises
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 7
Re: pasword protection
« Reply #1 on: October 21, 2010, 06:35:14 PM »
also, to add, i am on a vista system right now, but i primarily use xp. I still want it universal for any windows computer
thanks
I consider myself a hacker. Not in the way of "I can break into your facebook" but in the way, I like to learn as much as I can, about anything i can. I don't just like having things fixed, I like to understand why it was broken and why a particular solution fixed it. It is just how I am, and how I will always be. As teachers have said before, you cant learn if you don't figure it out in your own mind.

mat123



    Hopeful

    Thanked: 16
    • Yes
    • Yes
    • Yes
  • Experience: Familiar
  • OS: Windows XP
Re: pasword protection
« Reply #2 on: October 22, 2010, 06:37:52 PM »
try This
Code: [Select]
@echo off
color 0c
title lOGIN
cd..



echo             000PASSWORD0  000
echo           00000000000000   0000
echo         00000000000000000   0000000
echo          0000000000000000000   0000000000
echo        000000000000000000000    0000000000
echo       00000000000000000000000   00000000htp0
echo      000000000000000000          0000000htp00
echo       0000000000000000000          0000HTP000000
echo      0000000000000000000            000HTP0000000
echo    0000000000000000000            000000HTP0000
echo   00000000000000000000           0000000HTP0000
echo   000000000  000 000000     0000  00000000000000
echo  0000000000  00   00000      00000000000000000000
echo  000000000        00000       0000000000000000000
echo  000000000         00000       0000000000 0000000
echo  000000000         00000           00000  0000000
echo  000000000000     000000                  0000000
echo  000000000000      00000                00000000
echo  000000000000       000                0000000000
echo   00000000000                         0000000000
echo    000000                            00000000000
echo    0000000                               000000
echo     0000000                            0000000
echo      00000000                         00000000
echo       00000000                   00000000000
echo        0000000000000         00000000000000
echo          000all_files_will_be_deleted0000
echo            0after_3_incorect attempts00
echo               0000000WILLBURN000000


echo Welcome, zERoBurN
echo Continue?
pause

cls
echo sensitive information
ECHO pasword required

:password
set input= password =
set/p input=password (input then press enter):
if %input%==willburnyou goto YES
if not %input%==willburn goto NO

:YES
start "allinfo"
exit


:no

echo incorrect password....
pause

cls
echo sensitive information
ECHO pasword required

:password
set input= password =
set/p input=password (input then press enter):
if %input%==willburnyou goto YES
if not %input%==willburn goto next1
goto YES


:next1
echo incorrect password....
pause

cls
echo sensitive information
ECHO pasword required

:password
set input= password =
set/p input=password (input then press enter):
if %input%==willburnyou goto YES
if not %input%==willburn goto next2
goto YES

:next2
echo incorect password

pause


echo you have been terminated
echo This file and all subfoders are now deleted
del allinfo\access.bat
shutdown -s
pause