How to Deny Access (Both Read & Write) to Hard Disk .

Hello to all,
I am writing a computer security software, that locks the computer up
with a password.
I've been able to do it pretty OK, but for one part.
For supreme security, I need to completely deny access to the
Hard Disk .

I need some help for solving this . Thank you.
KKR_WE_RULEAsked:
Who is Participating?
 
delphibrCommented:
Hi,

Maybe it is not the better solution, but you can do this through Windows Registry (NoDrives and NoViewOnDrives). Have a look in this:

http://yashirmind.blogspot.com/2009/07/program-block-drive-dengan-delphi-7.html


I hope this is usefull for you!

DelphiBR



0
 
Dagan HooverDeveloperCommented:
Hmm, I'm not sure, but I don't think this can be done simply and safely. I would recommend a kernel driver to block access but: 1) Delphi can't do those. 2) Windows *needs* to access the Hard Drive.

Another to defeat (1) is to do a user mode hook of all the read/write functions in the WinAPI. This still leaves the (2) problem.

What exactly would denying access to the Hard Drive prevent a user from doing that can't be prevented another way.

Here is an open source application called Computer Locker I created in my spare time(get the source, not the exe!). It's very secure once it's enabled and would recommend looking at it. http://delphi.about.com/od/fullcodeprojects/a/computer-locker.htm
0
 
KKR_WE_RULEAuthor Commented:
I own that source..& without doubt, its pretty good..
But my way of making the computer secure in a little different than that one.
The one I wrote blocks access to the USB & also to every other things like desktop, icons & every thing gets locked up..

I dont know if i can put the link to the exe here.If I can  , i'll post it here for all to see.
That will posibly help in finding a soln for the problem . :)
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
Dagan HooverDeveloperCommented:
Well this comes back to my original question: Why do you need to stop access to the hard drive? What do you gain in doing so?
0
 
KKR_WE_RULEAuthor Commented:
prevent attempt of file stealing by the intruder.
0
 
nobusCommented:
is encrypting the disk not a better method then ?
0
 
KKR_WE_RULEAuthor Commented:
Certainly is, but what I thought was, encrypting the disk will take a good amount of time depending on the size of the disk..
I am just a beginner ..please show me the correct direction, if I am making any mistakes..

thank you.
0
 
nobusCommented:
imo, if you deny access to the disk (R/W) it becomes unusable.
i beieve you have an encryption in windows - depending on the OS
you can also use truecrypt :  http://www.truecrypt.org/
or - if you like : bestcrypt   http://www.jetico.com/encryption-bestcrypt/
0
 
KKR_WE_RULEAuthor Commented:
I need to implement it in Delphi..Those apps wont assist in that..
0
 
Dagan HooverDeveloperCommented:
How exactly is your lock implemented? Does it block all user interaction with the computer like Computer Lock? If they can't use the computer they can't copy files.
0
 
KKR_WE_RULEAuthor Commented:
Here is the executable .
Check it for reference.

http://www.mediafire.com/file/znqjiimc2yy/Project1.rar

Open in new window

0
 
nobusCommented:
i can't assist in Delphi
0
 
KKR_WE_RULEAuthor Commented:
This should do the trick..Will Try & report back :)
Thanks.
0
 
delphibrCommented:
Let us know if this tip solved your problem. If you have any question about it, just ask ;-)

DelphiBR
0
 
KKR_WE_RULEAuthor Commented:
Yup, the problem is solved :)
Thank you verymuch.. :)
0
 
delphibrCommented:
You are wellcome! :)

Delphi BR
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.