AutoHotkey Community

It is currently May 27th, 2012, 4:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: March 4th, 2010, 2:47 pm 
Offline

Joined: April 14th, 2009, 10:40 am
Posts: 182
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 March 5th, 2010, 6:12 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 4th, 2010, 3:05 pm 
Offline

Joined: January 7th, 2009, 7:03 pm
Posts: 43
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 4th, 2010, 4:05 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
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

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 4th, 2010, 7:58 pm 
Offline

Joined: April 14th, 2009, 10:40 am
Posts: 182
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 4th, 2010, 8:16 pm 
Offline

Joined: April 28th, 2007, 4:06 pm
Posts: 85
It certainly functions, but I can go right into Task Manager to kill the process.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 4th, 2010, 8:20 pm 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
Sephiroth2906 wrote:
I can go right into Task Manager to kill the process.

Unless one of the precesses it kills is Task manager :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 4th, 2010, 8:22 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
what about cmd
what about using notepad to edit the file
what about.....


seriously its a fiools errand
use built in windows control

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 4th, 2010, 9:28 pm 
Offline

Joined: April 14th, 2009, 10:40 am
Posts: 182
@tank : what about your solution?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 4th, 2010, 9:45 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
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

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 5th, 2010, 9:38 am 
Offline

Joined: April 14th, 2009, 10:40 am
Posts: 182
@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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 5th, 2010, 1:47 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
http://www.windowsecurity.com/articles/ ... sions.html
sigh found with google search term "setting folder permissions with ntfs"seriously loose that rediculous script its still very stopable and any way if you use ntfs permissions correctly it simply wont matter

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 5th, 2010, 6:11 pm 
Offline

Joined: April 14th, 2009, 10:40 am
Posts: 182
@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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 5th, 2010, 6:17 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
why in safe mode?
I'm done thats rediculous

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 5th, 2010, 6:23 pm 
Offline

Joined: April 14th, 2009, 10:40 am
Posts: 182
Because in normal mode "Security" doesn't appears!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 6th, 2010, 5:19 am 
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...


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: rbrtryn and 66 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group