Shell script to cover your tracks on UNIX systems. Designed for pen testing covering tracks phase, before exiting the infected server. Or, permanently disable system logs for post-exploitation.
sudo curl -sSL https://raw.githubusercontent.com/sagarkhandve/covermytracks/main/covermytracks -o /usr/bin/covermytracks
sudo chmod +x /usr/bin/covermytracks
mkdir -p .local/bin
curl -sSL https://raw.githubusercontent.com/sagarkhandve/covermytracks/main/covermytracks -o ~/.local/bin/covermytracks
chmod +x ~/.local/bin/covermytracks
Keep in mind that without sudo privileges, you might be unable to clear system-level log files (/var/log
).
covermytracks # you may need to use sudo if you want to clean auth logs
Welcome to covermytracks!
Select an option :
1) Clear logs for user root
2) Permenently disable auth & bash history
3) Restore settings to default
99) Exit tool
>
sudo covermytracks now
0 6 * * * covermytracks now >/dev/null 2>&1