T1070.003 test7 cleanup (#1345)

* Update T1070.003.yaml

Added cleanup command to test "Clear and Disable Bash History Logging"

* Update T1070.003.yaml

corrected spacing

* Update T1070.003.yaml

changed echo set -o to a sed replace command
This commit is contained in:
Brian Thacker
2020-12-28 16:45:17 -06:00
committed by GitHub
parent 527fd3b78b
commit d9dcbd3dec
+4
View File
@@ -81,6 +81,10 @@ atomic_tests:
echo 'set +o history' >> ~/.bashrc
. ~/.bashrc
history -c
cleanup_command: |
sed -i 's/set +o history//g' ~/.bashrc
. ~/.bashrc
set -o history
name: sh
- name: Use Space Before Command to Avoid Logging to History
auto_generated_guid: 53b03a54-4529-4992-852d-a00b4b7215a6