

def doFingerprint(host, port, ssl, service):
    fpath = [abspath(('./src/platform/%s/fingerprints' % service))]
    match_fps = []
    fingerprints = list(pkgutil.iter_modules(fpath))
    for fingerprint in fingerprints:
        fp = fingerprint[0].find_module(fingerprint[1]).load_module(fingerprint[1])
        fp = fp.FPrint()
        if fp.check(host, port):
            match_fps.append(fp)
    return match_fps

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