Clearing Traces

  1. .bat file to clear windows logs of timeline of attack

./Clear_Event_Viewer_Logs.bat
  1. Using inbuilt windows command line utility

### Commands to list logs : 
wevtutil el
wevtutil el <log_name>
### Command to clear logs : 
wevtutil cl
wevtutil cl <logname>
  1. Using cipher tool

cipher /w: <Disk or Folder or File>

Linux based distributions

export HISTSIZE=0 # It disables the logging
history -c # it cleares the history
history -w # it cleares the history of current shell
shred ~/.bash_history # shreads the file 

Last updated