'Returns a dict of open ports found'

def get_open_ports(self):

    results = {}
    vulns = self.find_vuln(plugin_id='0')
    for v in vulns:
        proto = v.get('protocol')
        port = v.get('port')
        if (proto not in results):
            results[proto] = []
        results[proto].append(port)
    return results
