This recipe will demonstrate how to use Bash to exploit a single vulnerability across multiple systems and add a new administrator account on each system. This technique can be used to access compromised systems at a later time using integrated terminal services or SMB authentication.
Multithreaded MSF exploitation with admin account creation
Getting ready
To use the script demonstrated in this recipe, you will need to have access to multiple systems that each have the same vulnerability that can be exploited with Metasploit. In the example provided, a VM running a vulnerable version of Windows XP is copied to generate three instances of the MS08-067 vulnerability. For more information on setting up a Windows system, refer to the Installing a Windows Server recipe...