In this post I want to talk about the basics of using the Metasploit Framework that is included on the latest version of Kali Linux. If you don’t already know the Metasploit Framework is a project that makes writing and utilizing exploits relatively easy and it’s components are very modularized. Metasploit has everything you need for exploitation from the exploits themselves to payloads, post exploitation modules and more. What exactly does all of this mean? In this case it means remote command line access with System privileges…:)

You can find the commands I used and more info on my blog post found here:
http://robwillis.info/2016/08/metasploit-framework-basics-on-kali-linux-owning-a-windows-server/

source