 |
|
| Google |
11-07-2008 12:30 PM |
Simple Folder Locker
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
This code is saved as "locker.bat"
The batch file is converted to an executable file using "Quick Batch File Compiler"
The executable file is packed using UPX 3.1
|
| All times are GMT +1. The time now is 10:35 AM. |
|
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger