The biggest mistake made by hackers that get caught was not covering their tracks. They were caught because of leaving digital footprints or their malware they used to establish a foothold. Tke the time to look everything over and make sure you clean up or end up in prison.
If you are the attacker, you first have to clear the logs, modify your registry or clear the registry and remove any files or commands that you have been using 'Clear your tracks' is really underestimated in my opinion.
Type cd/var/log
There you can see many logs that you are using.
Clear your Tracks with Shred
Command's-(Tap to copy command's):-
shred -h
man shred
shred -zxuvf (Name of your file)
The command to use for this:-
-z, --zero add a final overwrite with zeros to hide shredding
-x, --exact do not round file sizes up to the next full block; this is the default for non-regular files
-u deallocate and remove file after overwriting
-v, --verbose show progress
-n, --iterations=N overwrite N times instead of the default (3)
Delete the history and clear your logs:-
cat ~/.bash_history
~/.bash_history
~/.bash_history
Delete your command history:-
echo $HISTFILE
echo $HISTSIZE
export HISTSIZE=0 ( you can set your file size like this to zero,to avoid storing commands)
Automate the Clearning of any file:-
sudo crontab -e
00 23 * * * shed~/dev/null > ~/.bash_history && cat /dev/null > .bash_hystory
Secure delete:-
📌Srm
📌smem
📌sfill
📌sswap
sudo apt install secure-delete
Install wipe:-
sudo apt install wipe
man wipe
wipe -h
sudo wipe filename( delete by filename)
Remove any dictionary:-
sudo wipe -r directory name
Check for hidden files:-
ls -altr
sudo lsof | grep .log
sudo find / -cmin 0 -print