From c95ca8a5af73a8b41e047a71b81f0b3d7c2c1390 Mon Sep 17 00:00:00 2001 From: five-three Date: Fri, 27 Oct 2023 11:45:01 +0800 Subject: [PATCH] Improve the getprereqs command --- atomics/T1027/T1027.md | 2 +- atomics/T1027/T1027.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atomics/T1027/T1027.md b/atomics/T1027/T1027.md index 2137d78326..157242979b 100644 --- a/atomics/T1027/T1027.md +++ b/atomics/T1027/T1027.md @@ -75,7 +75,7 @@ rm /tmp/art.sh ##### Description: encode the command into base64 file ##### Check Prereq Commands: ```sh -exit 1 +if [ -e "/tmp/encoded.dat" ]; then exit 0; else exit 1; fi ``` ##### Get Prereq Commands: ```sh diff --git a/atomics/T1027/T1027.yaml b/atomics/T1027/T1027.yaml index 1599d6c556..df0dd38497 100644 --- a/atomics/T1027/T1027.yaml +++ b/atomics/T1027/T1027.yaml @@ -21,7 +21,7 @@ atomic_tests: - description: | encode the command into base64 file prereq_command: | - exit 1 + if [ -e "/tmp/encoded.dat" ]; then exit 0; else exit 1; fi get_prereq_command: | echo "#{shell_command}" | base64 > /tmp/encoded.dat executor: