In this recipe, we will exploit vulnerable services in Windows. To understand this section, we have a Windows 7 system with some vulnerable software running. We will do a quick enumeration, find vulnerabilities, and exploit them using Metasploit.
In order to start exploiting, we will need the vulnerable Windows OS. Get the IP of that machine. Apart from this, we will have to initialize the Metasploit framework in the CLI (command-line interface). We are good to go.
nmapscan to find the available services. Run the following command in the terminal:
nmap -sT -sV -T4 -p 1-65535 <IP address>
The output will be as shown in the following ...