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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user