Well, as you said you could do an nmap scan to determine the services and their versions or telnet or nc, after you get the service and the version you could actually check them on exploit-db to see if there are some exploits for them or use the search function from metasploit, there also is SHODAN who can search for such things.



