2018-01-01 21:02:52 +00:00
|
|
|
# HISTCONTROL
|
|
|
|
|
|
|
|
MITRE ATT&CK Technique: [T1148](https://attack.mitre.org/wiki/Technique/T1148)
|
|
|
|
|
|
|
|
|
2018-01-01 21:17:10 +00:00
|
|
|
### Set the environment variable
|
2018-01-01 21:02:52 +00:00
|
|
|
export HISTCONTROL=ignoreboth
|
2018-01-01 21:17:10 +00:00
|
|
|
|
|
|
|
OR
|
|
|
|
|
|
|
|
echo export "HISTCONTROL=ignoreboth" >> ~/.bash_profile
|
|
|
|
|
|
|
|
### Preface commands with a space to exclude them from .bash_history
|
|
|
|
ls
|
|
|
|
whoami > recon.txt
|