Go Back   Gaming Gutter > Non-Gaming > Programming > Source Code


Source Code - Have a source code/project files you want to post? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» GG Stuff

Follow us on Twitter!

Get the GG toolbar today (for firefox only)
» Recent Threads
Go to first new post Guide to Q & A --READ...
07-07-2009 04:40 AM
Last post by yoshiboy
Today 07:20 AM
4 Replies, 377 Views
Go to first new post Nostalgia towards your...
11-05-2009 07:49 AM
Last post by DOX_kzerza
Today 06:42 AM
32 Replies, 322 Views
Go to first new post How do i upload...
Today 05:44 AM
by kapa
Last post by kapa
Today 06:04 AM
4 Replies, 25 Views
Go to first new post Neopets 10th Birthday...
11-16-2009 07:29 AM
by limacon
Last post by limacon
Today 05:54 AM
8 Replies, 931 Views
Go to first new post What neopets programs do...
11-19-2009 04:03 AM
by slurf
Last post by slurf
Today 05:54 AM
6 Replies, 103 Views
Reply
 
LinkBack Thread Tools Display Modes

 [BATCH] pass hide-lock folder
Old 10-13-2009, 07:36 AM   #1 (permalink)
Full Member

ojay93 is offline
 
ojay93's Avatar
 
Join Date: Feb 2008
Posts: 23
GPoints: 116
iTrader: 0 / 0%
ojay93 Is a New Face in Town
Rep Power: 0
[BATCH] pass hide-lock folder

Hey, haven't been on here and posted since i joined. well lately i have made some new friends and i discovered they were into computers and all my geeky-ness came crashing back. I heard about a batch that when opened prompted the user for a password, then once password had been entered a folder appeared and you could store whatever in the file, then you re-open the batch it asks you if you would like to hide the folder. is yes is entered then the folder dissapears and cannot be found far-less opened. So i sat down one night and started code-ing, then 2 days and a lot of energy juice later i had it.

code:
@ECHO OFF
echo Hidden Lock Folder Batch Program Written by Jack White.
echo Program Written Friday October 9th, 2009
echo ---- ---- ---- ---- ---- ---- ---- ---- ----
echo Veritasium Programming
echo ---- ---- ---- ---- ---- ---- ---- ---- ----
title Folder JacksArea
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNJacksArea
if NOT EXIST JacksArea goto MDJacksArea
:AuthConfirm
echo Are you sure you want to Lock Folder (Y/N)
set/p "cho=>"
if %cho%==Y goto JacksArea
if %cho%==y goto JacksArea
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto AuthConfirm
:JacksArea
ren JacksArea "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder JacksArea Locked!
goto End
:UNJacksArea
echo Enter password to Unlock Folder
set/p "pass=>"
if NOT %pass%== fredfred goto FailUnlock
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" JacksArea
echo Folder UnLocked successfully!
goto End
:FailUnlock
echo Invalid password!
echo Try again? (Y/N)
set/p "choice=>"
if %choice%==Y goto UNJacksArea
if %choice%==y goto UNJacksArea
if %choice%==N goto END
if %choice%==n goto END
:MDJacksArea
md JacksArea
echo Folder JacksArea created successfully!
goto End
:End


-----------------------------------------

save this as a .bat

Once you have locked the folder after you have placed files in it or whatever, the folder will dissapear, but if you have show hidden folders on, it will remain as a hidden folder untill you refresh that window (F5).

this is an extremley handy file protection tool for using on usb keys at school or whatever, the password is
fredfred

This is not Full prove though because if a person uses a program such as OLLYDBG they can view the program as a source and then it is simple to find the password.

Im currently working on a double passworded hide lock folder, that will corrupt the files within the folder or delete them if the password is failed 3 times. also so that the password is stored in another file, within the hidden folder, so the user (person trying to get in) cant view it but the program knows where to go to get it.

Hope You like my little program, any feedback is 100% welcome good or bad. Also any advice/help on the program i am attempting to write now would be a help. this is my 3rd Batch program, but the only one which i think is good enough to be up here.

more to come..
cheers, jack/veritasium
__________________
OJAY--93
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


Powered by vBadvanced CMPS v3.1.0

All times are GMT -7. The time now is 07:22 AM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.21112704 seconds (100.00% PHP - 0% MySQL) with 21 queries