In this recipe we will use Metasploit to erase our tracks. Cleaning up after compromising a host is an extremely important step because you don't want to go through all the trouble of gaining access only to get caught. Luckily for us, Metasploit has a way for us to clean up our tracks very easily.
The following requirements need to be fulfilled:
Let's begin the process of performing a clean up of our tracks from a Meterpreter shell: