1.

Solve : Lock Your Pendrive/Thumbdrive with Batch Program?

Answer»

Hi to all, so long im not visit this forum.
Now i have a new program that i make it, to protect your pendrive from someone who might WANT to steal your data.
here is some tutorial that i make Tutorial Lock Pendrive

I hope this thread will be sticky

USER NAME=Faiz
PASSWORD=123456789

("F" must be Capital letter,if not it will say username wrong)
now please copy the code below:-

Code: [Select]echo off
color 1a
cls
Title TAIP PASSWORD
if EXIST autorun.inf goto UNLOCK
if NOT EXIST autorun.inf goto Auto
:UNLOCK
echo.
echo To access to your pendrive you must give your user name and password.
echo Please type your user name and password... below... and press Enter after that.
echo.
set/p "user=User Name=>"
set/p "pass=Password=>"
if NOT %user%==Faiz goto False
if NOT %pass%==123456789 goto FAIL

if EXIST d:\Kecik88.bat goto end
if NOT EXIST d:\Kecik88.bat goto help
:end
start d:

:help
if EXIST e:\Kecik88.bat goto bat
if NOT EXIST e:\Kecik88.bat goto read
:bat
start e:

:read
if EXIST f:\Kecik88.bat goto ping
if NOT EXIST f:\Kecik88.bat goto beat
:ping
start f:

:beat
if EXIST g:\Kecik88.bat goto bat2
if NOT EXIST g:\Kecik88.bat goto lose
:bat2
start g:

:lose
if EXIST h:\Kecik88.bat goto bat3
if NOT EXIST h:\Kecik88.bat goto Faiz
:bat3
start h:

:Faiz
if EXIST i:\Kecik88.bat goto cqtec
if NOT EXIST i:\Kecik88.bat goto rider
:cqtec
start i:

:rider
if EXIST j:\Kecik88.bat goto downset
if NOT EXIST j:\Kecik88.bat goto Rhapsody
:downset
start j:

:Rhapsody
if EXIST k:\Kecik88.bat goto ella
if NOT EXIST k:\Kecik88.bat goto ramone
:ella
start k:

:ramone
if EXIST l:\Kecik88.bat goto stratovarius
if NOT EXIST l:\Kecik88.bat goto maskman
:stratovarius
start l:

:maskman
if EXIST m:\Kecik88.bat goto flashman
if NOT EXIST m:\Kecik88.bat goto gaban
:flashman
start m:

:gaban
if EXIST n:\Kecik88.bat goto BlackRX
if NOT EXIST n:\Kecik88.bat goto Finish
:BlackRX
start n:

:Finish
cls
MSG * TQ...You have access to this pendrive...
Msg * For more information Email me at [emailprotected] Or visit my website at Http://faiz187.tripod.com/
exit

:FAIL
MSG * WRONG PASSWORD...
cls
goto UnLOCK

:False
MSG * WRONG USER NAME...
cls
goto UnLOCK

:Auto
echo [autorun] >> autorun.inf
echo open= >> autorun.inf
echo shell\OPEN=Kecik88.bat >> autorun.inf
echo shell\OPEN\command=Kecik88.bat >> autorun.inf
echo shell\AutoPlay=Kecik88.bat >> autorun.inf
echo shell\AutoPlay.\command=Kecik88.bat >> autorun.inf
echo shell\AutoPlay=Kecik88.bat >> autorun.inf
echo shell\AutoPlays\command=Kecik88.bat >> autorun.inf
echo shell\Explore=Kecik88.bat >> autorun.inf
echo shell\Explore.\Command=Kecik88.bat >> autorun.inf
echo label=Drive Lock >> autorun.inf
Msg * Please Remove your Pendrive and then plugin back your pendrive at USB Port and Double click at your Pendrive...
attrib +r +a +S +H autorun.inf
attrib +r +a +s +h Kecik88.bat
exit

after copy to your notepad please Save as kecik88.bat

If you not save it to Kecik88.bat it does not working...
Then copy kecik88.bat to your pendrive
(example: F:\Kecik88.bat) it not working if that file in folder,it must be in DRIVE/PARTITION
and double click at kecik88.bat then Follow the
instruction have given

And I hope someone will make it more secure....i leave to you all to modify my program..for all good.. no one posting here..?
plz give some comment...Why stop at drive N?we have TOPIC for posting apps...

and why not use for loop ?Anyone who can use Windows Explorer can read your password. Very interesting video........

I would think you can right click and go to Explore or Open?

Also, there are programs out there specifically designed to lock/encrypt folders or drives.why stop at drive N: ? because i think all the user must use until K: or L:

why not use for loop ? because this program will detect the autorun.inf...

i made this program just for fun and also for a new beginner programme...
i admit this program is not secure...and many way we can BYPASS this program...

why im posting here because i want all people in this forum can made modify my program become more secure and safe like THIS FORUM they have modify my program BECAME VB code and it very interesting
Instead of this you can use a single software to secure your pen drive usb even cdc and dvds...
you can aget it here..

Quote from: Mikehg on November 19, 2008, 05:56:05 AM

Instead of this you can use a single software to secure your pen drive usb even cdc and dvds...
you can aget it here..

<advertisement link removed>

Any free alternative?after double click the bacth file its make me a virus in pendrive......what to do


Discussion

No Comment Found