From df67a8aa4d96a7c937b07efefbb1cafda07eec62 Mon Sep 17 00:00:00 2001 From: Brendan Malone <46428809+RoundBunny@users.noreply.github.com> Date: Fri, 3 Jun 2022 10:23:25 -0500 Subject: [PATCH] Fixed not compiling --- atomics/T1574.006/T1574.006.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/atomics/T1574.006/T1574.006.yaml b/atomics/T1574.006/T1574.006.yaml index 5f9d528d..2d1f4c28 100644 --- a/atomics/T1574.006/T1574.006.yaml +++ b/atomics/T1574.006/T1574.006.yaml @@ -83,9 +83,9 @@ atomic_tests: dependency_executor_name: bash dependencies: - description: | - The c source must exist on disk at specified location (#{source_file}) + Compile the dylib from (#{source_file}). Destination is #{dylib_file} prereq_command: | - if [ -f #{source_file} ]; then exit 0; else exit 1; fi; + gcc -dynamiclib #{source_file} -o #{dylib_file} get_prereq_command: | gcc -dynamiclib #{source_file} -o #{dylib_file} executor: @@ -93,5 +93,6 @@ atomic_tests: DYLD_INSERT_LIBRARIES=#{dylib_file} #{file_to_inject} cleanup_command: | kill `pgrep Calculator` + kill `pgrep firefox` name: bash elevation_required: false