From 01db64eb4f559cf7600d10fbe10a1cbfddb7900c Mon Sep 17 00:00:00 2001 From: AlbertoPellitteri <66901396+AlbertoPellitteri@users.noreply.github.com> Date: Tue, 17 Sep 2024 23:27:11 +0200 Subject: [PATCH] Fixing test `T1546.004.yaml` (#2930) * Fixing last test * Fixing test to make the bash_logout being executed --------- Co-authored-by: Hare Sudhan --- atomics/T1546.004/T1546.004.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/atomics/T1546.004/T1546.004.yaml b/atomics/T1546.004/T1546.004.yaml index e02fb7bd..d2a0ae6c 100644 --- a/atomics/T1546.004/T1546.004.yaml +++ b/atomics/T1546.004/T1546.004.yaml @@ -124,7 +124,6 @@ atomic_tests: elevation_required: true command: | useradd --create-home --shell /bin/bash art - su --login art - echo 'echo "Atomic Red Team was here... T1546.004" >> $HOME/art.txt' >> $HOME/.bash_logout + su -l art -c "echo 'echo \"Atomic Red Team was here... T1546.004\" >> /home/art/art.txt' >> /home/art/.bash_logout; exit" cleanup_command: | userdel -fr art