AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to hide/protect folders/files or programs? [SOLVED]
Goto page 1, 2  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
TomXIII



Joined: 14 Apr 2009
Posts: 182

PostPosted: Thu Mar 04, 2010 1:47 pm    Post subject: How to hide/protect folders/files or programs? [SOLVED] Reply with quote

Hi everybody!
I would to know if there is anyway to protect/hide partitions, folders/files or programs with autohokey? I have some friends who use my computer and even with the "users accounts" I wanna protect/hide several access. If nothing can be done with AHK, please give me some ideas (I already know TrueCrypt). Thank in advance!


Last edited by TomXIII on Fri Mar 05, 2010 5:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
DevX



Joined: 07 Jan 2009
Posts: 43

PostPosted: Thu Mar 04, 2010 2:05 pm    Post subject: Reply with quote

Either encrypt the whole thing, or take it with you.

All other defences are useless, as all one needs to do is plug in a usb stick, and they have access to everything.

It all depends on how inexperienced your friends are
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Thu Mar 04, 2010 3:05 pm    Post subject: Reply with quote

this is a windows question not ahk

do not use ahk for security its way to easy to kill
short answer is to only give one user access to some folder/partition and make your friends use a guest account

and ntfs must be your file system
_________________

We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Back to top
View user's profile Send private message
TomXIII



Joined: 14 Apr 2009
Posts: 182

PostPosted: Thu Mar 04, 2010 6:58 pm    Post subject: Reply with quote

Thx for replies!

I've coded this simple script to avoid for "non-admin" users to launch non wanted applications. I added it to autorun.

Code:
#NoTrayIcon
ProcessList =
(
Process1.exe
Process2.exe
...
ProcessN.exe
)

If A_IsAdmin
   ExitApp
Else
{
   
   Loop
   {
      Loop, parse, ProcessList, `n
      {
         Process, Exist, %A_LoopField%
         PID := ErrorLevel
         If PID
            Process, Close, %PID%
      }
      Sleep, 20
   }
}

!²::
ToolTip, This is the end!!!
Sleep, 1000
ExitApp
Return
Back to top
View user's profile Send private message
Sephiroth2906



Joined: 28 Apr 2007
Posts: 85

PostPosted: Thu Mar 04, 2010 7:16 pm    Post subject: Reply with quote

It certainly functions, but I can go right into Task Manager to kill the process.
Back to top
View user's profile Send private message
None



Joined: 28 Nov 2009
Posts: 3086

PostPosted: Thu Mar 04, 2010 7:20 pm    Post subject: Reply with quote

Sephiroth2906 wrote:
I can go right into Task Manager to kill the process.

Unless one of the precesses it kills is Task manager Very Happy
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Thu Mar 04, 2010 7:22 pm    Post subject: Reply with quote

what about cmd
what about using notepad to edit the file
what about.....


seriously its a fiools errand
use built in windows control
_________________

We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Back to top
View user's profile Send private message
TomXIII



Joined: 14 Apr 2009
Posts: 182

PostPosted: Thu Mar 04, 2010 8:28 pm    Post subject: Reply with quote

@tank : what about your solution?
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Thu Mar 04, 2010 8:45 pm    Post subject: Reply with quote

what about it
Im not gonna give you baby steps i told you already

Quote:
short answer is to only give one user access to some folder/partition and make your friends use a guest account

and ntfs must be your file system
let google be your guide
the information is out there
_________________

We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Back to top
View user's profile Send private message
TomXIII



Joined: 14 Apr 2009
Posts: 182

PostPosted: Fri Mar 05, 2010 8:38 am    Post subject: Reply with quote

@tank:
Quote:
Im not gonna give you baby steps i told you already
Lol!!!

Quote:
give one user access to some folder/partition and make your friends use a guest account

and ntfs must be your file system
- Guest account : OK!
- NTFS File system : OK!
- One user access to some folder/partition : I need the Strenght to be with me. Please, give me another chance and some of your knowledge!
- Google : OK(but sometimes!)

UPDATED SCRIPT:
Code:
#NoTrayIcon
ProcessList =
(
AutoHotkey.exe
cmd.exe
notepad.exe
regedit.exe
SciTELaunch.exe
taskmgr.exe
)

If A_IsAdmin
   ExitApp
Else
{
   
   Loop
   {
      Loop, parse, ProcessList, `n
      {
         Process, Exist, %A_LoopField%
         PID := ErrorLevel
         If PID
            Process, Close, %PID%
      }
      Sleep, 20
   }
}

#r::
Return

!²::
If not A_IsAdmin
   Return
ToolTip, This is the end!!!
Sleep, 1000
ExitApp
Return
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Fri Mar 05, 2010 12:47 pm    Post subject: Reply with quote

http://www.windowsecurity.com/articles/Understanding-Windows-NTFS-Permissions.html
sigh found with google search term "[url=http://www.google.com/search?q=setting+folder+permissions+with+ntfs&rls=com.microsoft:*&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1]setting folder permissions with ntfs[/url]"seriously loose that rediculous script its still very stopable and any way if you use ntfs permissions correctly it simply wont matter
_________________

We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Back to top
View user's profile Send private message
TomXIII



Joined: 14 Apr 2009
Posts: 182

PostPosted: Fri Mar 05, 2010 5:11 pm    Post subject: Reply with quote

@tank: I did'nt find "Security" in folder's properties because I'm on XP Home. I have to be in "Safe Mode" with Admin account to do these things. Thx for the reply and especially for your patience!
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Fri Mar 05, 2010 5:17 pm    Post subject: Reply with quote

why in safe mode?
I'm done thats rediculous
_________________

We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Back to top
View user's profile Send private message
TomXIII



Joined: 14 Apr 2009
Posts: 182

PostPosted: Fri Mar 05, 2010 5:23 pm    Post subject: Reply with quote

Because in normal mode "Security" doesn't appears!
Back to top
View user's profile Send private message
Guest






PostPosted: Sat Mar 06, 2010 4:19 am    Post subject: Reply with quote

TomXIII wrote:
UPDATED SCRIPT

...I don't think I read this whole thread, but you deny notepad.exe to users? Why? Except for SciTELaunch.exe, the rest of the "blocked" progs are the ones I use most...I would never be able to function or do anything on your locked-down comp...except try to bypass the block, so I can run my notepad!...& I think I already know a way...

Also, if !A_IsAdmin, they can't do much damage with those commands anyway...
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group