Skip to content

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.

License

Notifications You must be signed in to change notification settings

sagarkhandve/covermytracks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

covermytracks - Tool for pentesters.

whole-house-carpet-cleaning-logo

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.

Installation

With sudo :

sudo curl -sSL https://raw.githubusercontent.com/sagarkhandve/covermytracks/main/covermytracks -o /usr/bin/covermytracks
sudo chmod +x /usr/bin/covermytracks

Without sudo :

mkdir -p .local/bin
curl -sSL https://raw.githubusercontent.com/sagarkhandve/covermytracks/main/covermytracks -o ~/.local/bin/covermytracks
chmod +x ~/.local/bin/covermytracks

You can now use the tool using the executable.

Keep in mind that without sudo privileges, you might be unable to clear system-level log files (/var/log).

Usage :

covermytracks # you may need to use sudo if you want to clean auth logs

Follow the instructions :

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

>

NOTE: don't forget to exit the terminal session since the bash history is cached.

Clear logs instantly (requires sudo to be efficient) :

sudo covermytracks now

Job scheduler using cron job. Clear bash history every day at 6am :

0 6 * * * covermytracks now >/dev/null 2>&1

License

About

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.

Resources

License

Stars

Watchers

Forks

Languages