

def runDiscovery(targets, options):
    fingerengine = FingerEngine()
    fingerengine.options = options
    'Run a fingerprint on each host/port/platform combination'
    for host in targets:
        utility.Msg(('Beginning discovery scan on host %s' % host))
        for platform in state.supported_platforms:
            for port in targets[host]:
                for fp in doFingerprint(host, port[0], port[1], platform):
                    utility.Msg(('\t%s (version %s port %s)' % (fp.title, fp.version, port[0])), LOG.SUCCESS)

dataset/ETHPy150Open hatRiot/clusterd/src/module/discovery.py runDiscovery/original