Update T1564.004 test 3 Create ADS command prompt (#1198)

* Update T1564.004 test 3

* ignore errors when running cleanup multiple times

Co-authored-by: Carrie Roberts <clr2of8@gmail.com>
This commit is contained in:
bbucao
2020-08-15 21:48:56 -05:00
committed by GitHub
parent 19b5ee9ee4
commit 4050f7e76c
+1 -9
View File
@@ -73,17 +73,9 @@ atomic_tests:
type: string
default: '%temp%\T1564.004_has_ads_cmd.txt'
ads_filename:
description: Name of ADS file.
description: Name of ADS.
type: string
default: adstest.txt
dependency_executor_name: command_prompt
dependencies:
- description: |
The file must exist on disk at specified location (#{file_name})
prereq_command: |
IF EXIST #{file_name} ( EXIT 0 ) ELSE ( EXIT 1 )
get_prereq_command: |
echo normal_text >> #{file_name} >nul 2>&1
executor:
command: |
echo cmd /c echo "Shell code execution."> #{file_name}:#{ads_filename}