IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
3 Pages V   1 2 3 >  
Reply to this topicStart new topic

Best Way To Lock A Folder Without Using An Application


Zagete
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 10
Joined: 9-February 08
Member No.: 57,623



Post #1 post Feb 10 2008, 12:25 AM
Steps:

1- make a new folder ( name it as you like )
2- inside this folder make a (.TXT ) file & copy the following inside it:
CODE
Quote: cls
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End


3- After u copy the command go to line ( 23 ) u will find "password here" Change to any password u want.
4- After that, save it as locker.bat (the txt file will change to an application file)
5- Now go back to the folder & u will find a this locker.bat file.
6- Click on it & u will find a new folder called Private.
7- Now copy what u want in it & after that go to locker.bat by clicking it, it will open and ask you if you want to lock your folder? Y/N ?
8- Type Y
9- If you want to UNLOCK your folder, go open locker.bat & type your password and the Private folder will be made visible again.


Tested and working :]

Hide stuff from strangers, lol... biggrin.gif [I wonder what you're gonna hide wink.gif ]
Go to the top of the page
+Quote Post
rvalkass
no avatar
apt-get moo
****************
Group: [MODERATOR]
Posts: 2,501
Joined: 28-May 05
From: Devon, England
Member No.: 7,593
Spam Patrol
myCENT:8.70



Post #2 post Feb 10 2008, 11:20 AM
Another advantage to Linux. To lock any file or folder so that only you have access, use the following command:
[console]
chmod 0600 filename
[/console]

Job done tongue.gif

Still, that script is pretty cool to use on a Windows machine.
Go to the top of the page
+Quote Post
nol
no avatar
Super Member
*********
Group: [HOSTED]
Posts: 359
Joined: 27-May 07
Member No.: 43,758
myCENT:71.76



Post #3 post Feb 10 2008, 03:12 PM
wow thank you, i never knew you could do this, i doubt ill use it, maybe I will, depends, but I never knew you could even lock a folder, but very nice script. Good job on this smile.gif
Go to the top of the page
+Quote Post
abminara
no avatar
Premium Member
********
Group: Members
Posts: 164
Joined: 7-September 07
Member No.: 49,538



Post #4 post Feb 10 2008, 03:36 PM
Looks good. Just tried it, all works. Thanks wink.gif
Go to the top of the page
+Quote Post
demank
no avatar
Super Member
*********
Group: [HOSTED]
Posts: 200
Joined: 30-January 08
Member No.: 57,072



Post #5 post Feb 10 2008, 03:55 PM
thanks very much.
I like that bat file.
With this locker, i can hidden some file clearly., smile.gif smile.gif
Go to the top of the page
+Quote Post
CrashCore
no avatar
Super Member
*********
Group: [HOSTED]
Posts: 225
Joined: 8-April 05
Member No.: 5,385



Post #6 post Feb 10 2008, 04:54 PM
Very nice script, though you will definitely have to hide the batch file after you lock the folder because your password is stored inside of it in plain text. tongue.gif Or you could always use one of those programs that compiles a batch file into a .exe. But either way, it wouldn't be too hard to hide it, as long as those using this method are aware that it's necessary for any real level of security.

rvalkass is right though, linux for the win! smile.gif
Go to the top of the page
+Quote Post
leeker
no avatar
Newbie
*
Group: Members
Posts: 7
Joined: 4-January 08
Member No.: 55,693



Post #7 post Feb 17 2008, 03:37 PM
Thanks for share this info.
Go to the top of the page
+Quote Post
john_engit
no avatar
Newbie
*
Group: Members
Posts: 1
Joined: 15-April 08
From: Searching.........
Member No.: 60,818



Post #8 post Apr 15 2008, 11:45 AM
tongue.gif Crack for such Protection(Windows Environment)

1)Cmd to the location of Folder
2)cd <name of folder>
there u go

ur in the Folder
Go to the top of the page
+Quote Post
Jimmy
no avatar
Super Member
*********
Group: [HOSTED]
Posts: 490
Joined: 9-April 06
From: The UK
Member No.: 21,584
myCENT:77.65



Post #9 post Apr 15 2008, 12:44 PM
QUOTE(john_engit @ Apr 15 2008, 12:45 PM) [snapback]385085[/snapback]
tongue.gif Crack for such Protection(Windows Environment)

1)Cmd to the location of Folder
2)cd <name of folder>
there u go

ur in the Folder

There is no need for that, crashcore pointed out the flaw with this; the password is stored in the bat in plain text!

Is there a way to add md5'ing into this script, such as use a tool to get the md5 of your password and put that in the bat file instead, use it to compare the md5 of any code entered with the "correct" one? smile.gif

This post has been edited by Jimmy: Apr 15 2008, 12:47 PM
Go to the top of the page
+Quote Post
Csshih
no avatar
Premium Member
********
Group: [HOSTED]
Posts: 184
Joined: 20-April 06
From: from the Dumpster in the back
Member No.: 22,158



Post #10 post Apr 16 2008, 05:13 AM
Windows shell commands?
If you enabled: show hidden files and folders and extensions, you can just change the folder name, and then you can access the folder.


it will show up as :
Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}

the ".{21EC2020-3AEA-1069-A2DD-08002B30309D}" after the control panel is a reference to a registry key.
Go to the top of the page
+Quote Post

3 Pages V   1 2 3 >
Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts 1 muskrat 940 15th July 2006 - 05:23 PM
Last post by: BuffaloHelp
No New Posts   1 Jasontian 1,144 8th December 2007 - 03:59 AM
Last post by: jlhaslip
No New Posts 7 pasten 877 10th May 2009 - 10:11 PM
Last post by: mahesh2k
No New Posts   1 Seth teh ROM masta 504 15th August 2008 - 08:00 AM
Last post by: truefusion
No New Posts   1 myshop 380 10th February 2007 - 05:53 PM
Last post by: serverph
No New Posts   1 technischburo 254 26th June 2008 - 12:25 AM
Last post by: jlhaslip
No New Posts   1 dogtag 539 12th June 2007 - 07:32 PM
Last post by: truefusion
No New Posts   1 jsyzfyj 432 24th November 2007 - 02:20 PM
Last post by: rvalkass
No New Posts   2 EquiPow 331 22nd July 2008 - 03:10 AM
Last post by: BuffaloHelp
No New Posts   2 Picc84 444 13th December 2007 - 01:09 AM
Last post by: BuffaloHelp
No New Posts   1 sad-3y3s 447 19th July 2007 - 02:08 AM
Last post by: Kubi
No New Posts   3 it01y2 806 13th June 2007 - 02:07 PM
Last post by: wanchope
No New Posts   2 anoopnair 443 22nd June 2007 - 11:59 PM
Last post by: jlhaslip
No New Posts   1 joeblogg 199 16th October 2008 - 05:13 AM
Last post by: BuffaloHelp
No New Posts 7 Aero147 8,089 20th August 2004 - 08:33 AM
Last post by: OpaQue


 



RSS Open Discussion Time is now: 4th July 2009 - 08:50 PM

Web Hosting Powered by ComputingHost.com.