Skip to content

Commit

Permalink
Fixing test T1546.004.yaml (#2930)
Browse files Browse the repository at this point in the history
* Fixing last test

* Fixing test to make the bash_logout being executed

---------

Co-authored-by: Hare Sudhan <[email protected]>
  • Loading branch information
AlbertoPellitteri and cyberbuff authored Sep 17, 2024
1 parent c752936 commit 01db64e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions atomics/T1546.004/T1546.004.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 01db64e

Please sign in to comment.