tags:

views:

186

answers:

3

Last few days i have been working on building an application to hide folders(thanks to the paid versions of such softwares). After a heavy googling I zeroed into some shell script that would first create a folder and then rename the folder to "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}". It would then hide this folder by using the command attrib -s -h Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}. The funda behind this is to make it a system folder and hide it. But if you would uncheck the Hide sytem folders in Folder option the control panel becomes visible. I would like to make this folder completely invisible as how the other folder protecting softwares do.

Can somebody throw some more light on this?

Thanks a ton...

+3  A: 

What you are asking for is rootkit and is consider unethical and even illegal in some countries. While I currently lack the reputation to down vote you, I hope someone will close this question.

jellomonkey
I dont think this is rootkit as you there are many softwares that have done this and they all of them are paid. I'm in a process of building an opensource software to help those millions who would like to have some privacy at no cost. This facility should have been provided by the OS.
@jello, it does sound fishy, but I'm sure there are legitimate uses (e.g. hiding personal stuff on a shared computer).
dbkk
@technocrat, if your app is closed source and used by a few people they may gain some privacy. If it's open source and used by millions, the no folder-hiding scheme would work (if it's that popular, people will specifically look to for it).
dbkk
I am not going to disagree that there are a few reasons one may look for this type of software but the question wasn't phrased in a way that left me confident this is legit. I think that programmers have an ethical duty to withhold knowledge when it comes to security related programming unless they know the identity and intentions of the person receiving the information.
jellomonkey
Oops sorry if the question sounded like that... But the fact that I have disclosed the way i have done it till now shows my commitment to build an open source software.
fyi, you do have the rep to down vote
cbrulak
-1. This is not an answer to the question. If you don't like a question, then leave a comment and vote it down.
Rob Kennedy
+2  A: 

Most folder hiding software works by implementing either an extension for Windows Explorer or a file system filter driver.

The first method means that certain items will not be visible when browsing folders in Windows via the UI, but will still be visible to other software and via the command prompt. For example, the Recycle Bin and Temporary Internet Files folders work this way.

The file system filter driver method proxies calls between Windows and the underlying file system and only allows certain requests through. This is similar to how virus scanners prevent access to infected files.

X-Cubed
Could u be more specific as to how this could be implemented. I m planning of implementing it in Java. Any pointers would be helpful.
+2  A: 

The general idea is that you hook the file system API's and filter out the file system entries you want to hide.

But JelloMonkey is right - this is rootkit behavior and you will get flagged as malicious by rootkit detectors for this kind of behavior. That's likely to get your entire directory quarantined or deleted.

Software Monkey