Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 01-11-2008, 07:30 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Jul 2008
Posts: 6
Default Lock Pendrive/Flashdrive Without Third Party Software(Batch File)


Hi there this code i made it by myself 2 years ago..now i let it be share to all...
SEE THE TUTORIAL HERE

Now copy the code Below to your notepad.

Code:
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 Thundercat_wacha@yahoo.com 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
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)
and double click at kecik88.bat then Follow the
instruction have given



For any Question you can go to this website

http://faiz187.tripod.com or www.fareast187.tk
Fareast187 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 02-11-2008, 03:56 AM   #2 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Lock Pendrive/Flashdrive Without Third Party Software(Batch File)

Brilliant work....NOT!!!

Copy to the pen drive, whatever, and say I plug it in, I dont have the password. So what?

Code:
change to the drive's root using cmd.
attrib -r -a -s -h *.bat
del *.bat
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 02-11-2008, 10:34 AM   #3 (permalink)
!! RecuZant By Birth !!
 
naveen_reloaded's Avatar
 
Join Date: May 2005
Location: In Everyone`s Heart
Posts: 2,985
Default Re: Lock Pendrive/Flashdrive Without Third Party Software(Batch File)

^^^ good one bro ...

can the pendrive be formatted ??? without a password ??? if thats the case .. then its waste... anyway there is some kinda protection like this tut , insteasd of nothing ...
thnks guys ..and why is it like this
Quote:
set/p "user=User Name=>"
set/p "pass=Password=>"
if NOT %user%==Faiz goto False
if NOT %pass%==123456789 goto FAIL
in the code ???


and also can other verify the code above given ... thanks a lot bro ...
__________________
Know My Thoughts..
Visit my Blog @ www.Urssiva.com
Visit My Tech Blog @ www.CloudTechnica.com
naveen_reloaded is offline  
Old 02-11-2008, 01:22 PM   #4 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Lock Pendrive/Flashdrive Without Third Party Software(Batch File)

^^
Code:
set /p variablename=promptquestion
That is the syntax.
so it would display "User Name=>" and wait for the user to type. The input is stored in the variable "user"
and similarly for password.
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 06-11-2008, 01:08 AM   #5 (permalink)
!! RecuZant By Birth !!
 
naveen_reloaded's Avatar
 
Join Date: May 2005
Location: In Everyone`s Heart
Posts: 2,985
Default Re: Lock Pendrive/Flashdrive Without Third Party Software(Batch File)

No i mean the names which i quoted?
Why are they present?
__________________
Know My Thoughts..
Visit my Blog @ www.Urssiva.com
Visit My Tech Blog @ www.CloudTechnica.com
naveen_reloaded is offline  
Old 08-11-2008, 03:24 PM   #6 (permalink)
Right Off the Assembly Line
 
Join Date: Jul 2008
Posts: 6
Default Re: Lock Pendrive/Flashdrive Without Third Party Software(Batch File)

Quote:
Originally Posted by naveen_reloaded View Post
No i mean the names which i quoted?
Why are they present?
it present the FAIZ is for your user name
and 123456789 is for your password
this two thing you must type in the command prompt...
when you run the program...kecik88.bat

you also can change the user name and password what ever you want......
just make sure went your type username in command prompt just make sure same like you change in the notepad.
Fareast187 is offline  
Old 08-11-2008, 04:14 PM   #7 (permalink)
"Aal Izz Well"
 
Krazzy Warrior's Avatar
 
Join Date: Apr 2008
Location: Inside ur BRaIN..!!
Posts: 1,832
Default Re: Lock Pendrive/Flashdrive Without Third Party Software(Batch File)

Anyone tried it other than thread starter because I donot want to put my pen derive in danger in case then plz inform here...
__________________
http://webchat.freenode.net/?channels=krow

http://twitter.com/krazzywarrior
Krazzy Warrior is offline  
Old 08-11-2008, 04:15 PM   #8 (permalink)
!! RecuZant By Birth !!
 
naveen_reloaded's Avatar
 
Join Date: May 2005
Location: In Everyone`s Heart
Posts: 2,985
Default Re: Lock Pendrive/Flashdrive Without Third Party Software(Batch File)

ok thnks ....
__________________
Know My Thoughts..
Visit my Blog @ www.Urssiva.com
Visit My Tech Blog @ www.CloudTechnica.com
naveen_reloaded is offline  
Old 08-11-2008, 05:43 PM   #9 (permalink)
M3TAL H3AD M3
 
skippednote's Avatar
 
Join Date: Feb 2007
Location: Highway To Hell
Posts: 1,376
Default Re: Lock Pendrive/Flashdrive Without Third Party Software(Batch File)

@dheeraj_kumar
Didn't you post a similar tut earlier
__________________
I spit Rainbows.
skippednote is offline  
Old 09-11-2008, 12:03 PM   #10 (permalink)
Alpha Geek
 
GeekyBoy's Avatar
 
Join Date: Feb 2006
Location: Kolkata
Posts: 501
Default Re: Lock Pendrive/Flashdrive Without Third Party Software(Batch File)

Hey, I found a way to bypass this ! Just type the drive letter of the pendrive in the address bar and press enter - it opens the pendrive !
__________________
Intel Core i3 2100 //4GB Corsair DDR3 1333 RAM //Intel DH61WW//Sony AD-7260S DVD-RW//Samsung 2033SW Monitor//Windows 7//Seagate ST3250310AS 250GB HDD
GeekyBoy is offline  
Old 10-11-2008, 03:01 PM   #11 (permalink)
Right Off the Assembly Line
 
Join Date: Jul 2008
Posts: 6
Default Re: Lock Pendrive/Flashdrive Without Third Party Software(Batch File)

there is no way your pendrive will be in danger...this program i made in safety way..NO DATA WILL BE LOST...you also can format your pendrive without password....
and also many way to bypass this program.. like GeekyBoy said...
actually i made this program for who are not know much about computer...
like a student Microsoft office..

and now i have publish to many forum to upgrade my program to became more security
like THIS FORUM
they have modify my program became Visual Basic program...so interesting...hehe
anyway this forum is from Malaysia...so the language they spoke is Malay language..

anything you can go to my website www.fareast187.tk
Fareast187 is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
batch file? rahul_bhageria QnA (read only) 1 21-05-2008 05:01 PM
installing software remotely via batch file buntythecool Software Q&A 1 21-04-2008 10:52 PM
Run a batch file as a service jamesbond007 QnA (read only) 5 26-10-2007 01:49 PM
batch file problem..... hansraj QnA (read only) 16 30-11-2005 02:18 AM
help needed reg. batch file. legolas QnA (read only) 4 26-03-2005 10:11 AM

 
Latest Threads
- by Tenida
- by chris
- by Who
- by abhidev
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 10:54 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2