Server Side Attack
Install Metasploit cummunity/pro and active it.
Create a new project for the target - Mestaploitable machine and start the scan.
Start the scan task.
You can modify the advanced settings. But it is not a must.
Launch scan and wait for the results.