web端:
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio" charset="UTF-8">
<TITLE></TITLE>
</HEAD>
<BODY>
<div id="bd">
<object id="ax" name="myAx" width="95%" height="900" classid="CLSID:61CA4820-F41A-4FDA-9F6F-2B6437502C0B" codebase="mycab.cab#version=1,0,0,1"></object>
</div>
<script type="text/javascript">
var WshShell=new ActiveXObject("WScript.Shell");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\Microsoft.com","");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\Microsoft.com\\www","");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\Microsoft.com\\www\\http","2","REG_DWORD");
document.write("<p>添加信任网站区域设置成功!</p><br>");
//添加信任站点IP
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range101","");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range101\\http","2","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range101\\:Range","39.106.157.136");
document.write("<p>添加信任站点IP设置成功!</p><br>");
//修改IE ActiveX安全设置
//受信任站点区域
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2\\1001","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2\\1004","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2\\1200","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2\\1201","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2\\1405","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2\\2201","0","REG_DWORD");
document.write("<p>受信任站点区域设置成功!</p><br>");
//Internet区域
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\1001","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\1004","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\1200","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\1201","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\1405","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\2201","0","REG_DWORD");
document.write("<p>Internet区域设置成功!</p><br>");
//高级设置
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Internet Explorer\\Download\\RunInvalidSignatures","0","REG_DWORD");
document.write("<p>修改IE ActiveX高级安全设置成功!</p><br>");
WshShell.Run("file:///C:/WINDOWS/system32/regsvr32.exe C:\\WINDOWS\\system32\\xxx.dll",0,false);
var axObject = document.getElementById('ax');
axObject.init();
</script>
</BODY>
</HTML>
inf端:
AddReg=GM
[GM]
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\CAS",":Range",0,"39.106.157.136"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\CAS","http",65537,"00000002"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2","1001","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2","1004","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2","1200","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2","1201","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2","1405","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2","2201","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3","1001","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3","1004","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3","1200","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3","1201","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3","1405","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3","2201","0x00010001","0"
HKCU,"Software\Microsoft\Internet Explorer\Download","RunInvalidSignatures","0x00010001","0"