Pivoting into the network
Once we have complete control over a computer in the system, our next step should be to pivot into the network and try exploiting and getting access to as many machines as possible. In this recipe, you will learn the easy way to do that with Metasploit.
How to do it...
Metasploit has an inbuilt meterpreter script, that allows us to add a route and enables us to attack other machines in the network using the current one. The concept is really simple; all we have to do is execute this:
run autoroute –s <IP subnet>
Once this is done, we can simply exploit the machines using the same methods that we covered in the previous recipes.