One of the difficulties of performing a large penetration test using the Metasploit framework is that each exploit must be run individually and in sequence. In cases where you would like to confirm the exploitability of a single vulnerability across a large number of systems, the task of individually exploiting each one can become tedious and overwhelming. Fortunately, by combining the power of MSFCLI and Bash scripting, one can easily execute exploits on multiple systems simultaneously by running a single script. This recipe will demonstrate how to use Bash to exploit a single vulnerability across multiple systems and open a meterpreter shell for each.
Multithreaded MSF exploitation with reverse shell payload
Getting ready
To use the script demonstrated in this...