From 9b9bd358eda2f22a9d927a8b2e0973920a0cc21d Mon Sep 17 00:00:00 2001 From: atmathis Date: Mon, 1 Jan 2018 16:17:10 -0500 Subject: [PATCH] Update HISTCONTROL * Added route to setting permanently in .bash_profile --- Linux/Defense_Evasion/HISTCONTROL.md | 11 +++++++++-- Mac/Defense_Evasion/HISTCONTROL.md | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Linux/Defense_Evasion/HISTCONTROL.md b/Linux/Defense_Evasion/HISTCONTROL.md index 08c7dbb..b0578f8 100644 --- a/Linux/Defense_Evasion/HISTCONTROL.md +++ b/Linux/Defense_Evasion/HISTCONTROL.md @@ -3,6 +3,13 @@ MITRE ATT&CK Technique: [T1148](https://attack.mitre.org/wiki/Technique/T1148) -### Set the environment variable, then preface commands with a space to exclude them from .bash_history +### Set the environment variable export HISTCONTROL=ignoreboth - ls + +OR + + echo export "HISTCONTROL=ignoreboth" >> ~/.bash_profile + +### Preface commands with a space to exclude them from .bash_history + ls + whoami > recon.txt diff --git a/Mac/Defense_Evasion/HISTCONTROL.md b/Mac/Defense_Evasion/HISTCONTROL.md index 08c7dbb..b0578f8 100644 --- a/Mac/Defense_Evasion/HISTCONTROL.md +++ b/Mac/Defense_Evasion/HISTCONTROL.md @@ -3,6 +3,13 @@ MITRE ATT&CK Technique: [T1148](https://attack.mitre.org/wiki/Technique/T1148) -### Set the environment variable, then preface commands with a space to exclude them from .bash_history +### Set the environment variable export HISTCONTROL=ignoreboth - ls + +OR + + echo export "HISTCONTROL=ignoreboth" >> ~/.bash_profile + +### Preface commands with a space to exclude them from .bash_history + ls + whoami > recon.txt