Files
atomic-red-team/Linux/Defense_Evasion/Clear_Command_History.md
T
2018-01-02 15:45:53 -05:00

23 lines
327 B
Markdown

# Clear Command History
MITRE ATT&CK Technique: [T1146](https://attack.mitre.org/wiki/Technique/T1146)
## multiple shells
unset HISTFILE
export HISTFILESIZE=0
history -c
## bash
rm ~/.bash_history
echo "" > ~/.bash_history
cat /dev/null > ~/.bash_history
ln -sf /dev/null ~/.bash_history