FILE LOCKER

756112

Intro: FILE LOCKER

Here is yet another .bat program I have created and is now sharing with the rest of yall. now I made this with 2 batch files (menu)(sign in).ENJOY!!!

STEP 1: Creating the Menu

@echo off

color 0c

title File locker

if EXIST "HTG Locker" goto menu

if NOT EXIST Private goto MDLOCKER

:menu

cls

echo ___MENU___

echo 1) lock/unlock

echo 2) Exit

set /p mn=:

if %mn%==1 goto veri

if %mn%==2 exit goto menu

:veri

cls

echo ___LOCK___

echo press (1)

echo ___unlock___

echo press (2)

set /p lu=:

if %lu%==1 goto Lk

if %lu%==2 goto unLK goto veri

:Lk

cls

ren Private "HTG Locker" attrib +h +s "HTG Locker"

goto End

:unLK

if EXIST "HTG Locker" goto ps

if NOT EXIST Private goto MDLOCKER

:ps

cls

call filelock1.bat

:MDLOCKER

md Private

echo Private created successfully

ping localhost -n 3 >nul

goto menu

:End

cls

echo FILE HAS SUCCESSFULLY BEEN LOCKED!

ping localhost -n 3 >nul

STEP 2: Creating the Login Page/unlocking Action

@echo off

title Batch Programmer

:top

cls

color 09

echo --------------------------------------------------------------------------------

echo IIIIIIIIIIII IIIIIIII IIIIIIIIIIII II II IIIIIIII II II !!

echo II II II IIII II II IIII II !!

echo II II II II II II II II II II !!

echo IIIIIIIIIIII II II IIII II II II II II II II !!

echo II II II II II II II II II II II

echo II II II II II IIII II II IIII !!

echo IIIIIIIIIIII IIIIIIII IIIIIIIIIIII II II IIIIIIII II II !!

echo --------------------------------------------------------------------------------

echo --------------------------------------------------------------------------------

set /P "user=>"

if %user%==HELLcat goto start

if not %user%==HELLcat goto fail

goto top

:start

set /P "ssap=>"

if %ssap%==Hello goto bottom

if not %ssap%==Hello goto fail

goto top

:bottom

cls

attrib -h -s "HTG Locker"

ren "HTG Locker" Private

echo Folder Unlocked successfully

ping localhost -n 4 >nul

goto end

:fail

cls

color 0c

echo The password or username is invalid!

ping localhost -n 3 >nul

goto top

:end

exit

Hope yall enjoy it and have fun with it!!!

HINT: I used a bat to exe converter so that people can't just edit the code.( make sure if you change it to an .exe to switch it from " call test.bat " to " start test.exe"

STEP 3:

2 Comments

yes he is right but it's still a fun little program?

Warning: Do not use this in replace of real encryption software designed to keep your files safe. This method of hiding files is easy to bypass and does not provide any real security; it is more for novelty than anything else.

@OP: Converting the batch file to an windows executable is probably not enough to stop people from tampering with the code. Especially if they want to change the password or username which can most likely be easily done via a hex editor.