desktop.ini和folder.htt欢乐时光病毒
这个文件是使用JavaScript编写的用来定义打开文件夹行为的超文本文件(我们可以使用FrontPage打开该文件进行简单编辑)。其中,打开文件夹的行为定义在以下函数中,原型为:
function ShowFiles() {
Info.innerHTML = L_Intro_Text + "〈br〉〈br〉" + L_Prompt_Text;
showFiles = true;
document.all.FileList.style.display = "";
document.all.Brand.style.display = "none";
FixSize();
}
我们只需要在这个函数中进行必要的修改,就可以改变文件夹打开的行为。比如,要想在打开该文件夹前先进行安全认证,可以这样修改函数:
function ShowFiles() {
var password="20000203";
var input;
input=prompt("请输入打开密码:","");
if (input==password)
{
Info.innerHTML = L_Intro_Text + "〈br〉〈br〉" + L_Prompt_Text;
showFiles = true;
document.all.FileList.style.display = "";
document.all.Brand.style.display = "none";
FixSize();
}
else
{
alert("警告,您无权浏览该目录");
}
}
通过修改打开行为的代码,就可以实现对某个目录的简单加密,当然,这种加密的目录很容易解开:不使用Web方式打开文件夹,避开执行该程序,或者直接从DOS中进入该文件夹都可以绕开密码的输入。