Hi!!,
If port 445 is open then metasploit exploit ms06_040_netapi would do the job. Similarly which is the best metasploit exploit for the following ports.

21
22
23
80
443
8080
8770

Is there any reference/guide/tutorials regarding metasploit exploits. Any kind of help will be appreciated. Your help is much needed.