parent
0ddc31b336
commit
9b9bd358ed
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue