Move test to T1105 (#1000)

This commit is contained in:
Andrew Beers
2020-05-20 10:58:20 -05:00
committed by GitHub
parent 51ce388932
commit f8cd169ca3
2 changed files with 17 additions and 17 deletions
-17
View File
@@ -128,20 +128,3 @@ atomic_tests:
name: command_prompt
command: |
.\bin\#{exe_binary}
- name: svchost writing a file to a UNC path
auto_generated_guid: fa5a2759-41d7-4e13-a19c-e8f28a53566f
description: |
svchost.exe writing a non-Microsoft Office file to a file with a UNC path.
Upon successful execution, this will rename cmd.exe as svchost.exe and move it to `c:\`, then execute svchost.exe with output to a txt file.
supported_platforms:
- windows
executor:
name: command_prompt
elevation_required: true
command: |
copy C:\Windows\System32\cmd.exe C:\svchost.exe
C:\svchost.exe /c echo T1055 > \\localhost\c$\T1055.txt
cleanup_command: |
del C:\T1055.txt >nul 2>&1
del C:\svchost.exe >nul 2>&1
+17
View File
@@ -290,4 +290,21 @@ atomic_tests:
del AtomicTestT1105.js /Q >nul 2>&1
del AtomicTestFileT1105.js /Q >nul 2>&1
popd
- name: svchost writing a file to a UNC path
auto_generated_guid: fa5a2759-41d7-4e13-a19c-e8f28a53566f
description: |
svchost.exe writing a non-Microsoft Office file to a file with a UNC path.
Upon successful execution, this will rename cmd.exe as svchost.exe and move it to `c:\`, then execute svchost.exe with output to a txt file.
supported_platforms:
- windows
executor:
name: command_prompt
elevation_required: true
command: |
copy C:\Windows\System32\cmd.exe C:\svchost.exe
C:\svchost.exe /c echo T1055 > \\localhost\c$\T1055.txt
cleanup_command: |
del C:\T1055.txt >nul 2>&1
del C:\svchost.exe >nul 2>&1