|
|
|||||||
| E-Learning Center « E-Learning tutorials and competitions. » |
![]() |
|
|
Share | Thread Tools | Search this Thread |
|
|
#1 |
|
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
|
This thread is for educational purposes.
Inspired from this thread: http://vcoderz.com/forum/showthread.php?t=2396&page=12 I decided to make a simple folder protector for flash memory. This is not extremely secured, it depends on who's running your flash memory (kevin mitnick or osama bin laden :p) Note that this does not work on Windows Vista. First: This is a final demo release of the software version 1.0: http://www.4shared.com/file/70107155...8d/locker.html The password of this demo is "linux". Second: How this demo was made? This is the raw program (source code): Code:
@echo off
color 0a
for %%x in (%1) do set path=%%~dpx
cd %path%
cls
echo Simple Folder Locker By Edgard Chammas.
echo ---------------------------------------
echo.
:CHOICE
ECHO Enter "l" To Lock Or "u" To Unlock Or "x" To Exit:
set /p CH=
if %CH%==l (
goto lock
) else if %CH%==u (
goto unlock
) else if %CH%==x (
goto bye
) else (
goto CHOICE
)
:lock
IF NOT EXIST secured goto FNE1
ren secured secured.{21EC2020-3AEA-1069-A2DD-08002B30309D}
echo The Folder "secured" Is Now Locked!
goto bye
:unlock
Echo Enter The Password In Order To Unlock The Folder "secured":
set /p password=
if %password%==linux (
IF NOT EXIST secured.{21EC2020-3AEA-1069-A2DD-08002B30309D} goto FNE2
ren secured.{21EC2020-3AEA-1069-A2DD-08002B30309D} secured
echo The Folder "secured" Was Unlocked Successfully!
goto bye
) else (
goto WP
)
:WP
echo You Entered A Wrong Password!
echo Cannot Unlock The Folder!
goto bye
:FNE1
echo The Folder "secured" Does Not Exists Or It Is Locked!
goto bye
:FNE2
ECHO The Folder "secured" Does Not Exists Or It Is Not Locked!
:bye
pause
The batch file is converted to an executable file using "Quick Batch File Compiler" The executable file is packed using UPX 3.1 |
|
|
|
![]() |
|
| Tags |
| folder, locker, simple |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|