文件夹隐藏软件如何工作?

发布于 2024-07-18 08:38:52 字数 370 浏览 0 评论 0原文

最近几天,我一直致力于构建一个应用程序来隐藏文件夹(感谢此类软件的付费版本)。 经过大量谷歌搜索后,我将注意力集中在一些 shell 脚本上,该脚本首先创建一个文件夹,然后将该文件夹重命名为“控制面板。{21EC2020-3AEA-1069-A2DD-08002B30309D}”。 然后,它将使用命令 attrib -s -h 控制面板隐藏此文件夹。{21EC2020-3AEA-1069-A2DD-08002B30309D}。 其背后的根本原理是使其成为系统文件夹并隐藏它。 但是,如果您取消选中“在文件夹中隐藏系统文件夹”选项,则控制面板将变为可见。 我想让这个文件夹完全不可见,就像其他文件夹保护软件所做的那样。

有人可以对此进行更多说明吗?

万分感谢...

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...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

白龙吟 2024-07-25 08:38:52

大多数文件夹隐藏软件通过实现 Windows 资源管理器扩展或文件系统过滤器驱动程序来工作。

第一种方法意味着某些项目在通过 UI 浏览 Windows 中的文件夹时将不可见,但仍对其他软件和通过命令提示符可见。 例如,“回收站”和“Internet 临时文件”文件夹就是这样工作的。

文件系统过滤驱动方法代理Windows和底层文件系统之间的调用,并且只允许某些请求通过。 这类似于病毒扫描程序阻止访问受感染文件的方式。

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.

记忆消瘦 2024-07-25 08:38:52

总体思路是挂钩文件系统 API 并过滤掉要隐藏的文件系统条目。

但 JelloMonkey 是对的 - 这是 Rootkit 行为,您将因这种行为被 Rootkit 检测器标记为恶意。 这可能会导致您的整个目录被隔离或删除。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文