

def run(options):
    ' \n\tThis module takes an input file (for now, nmap gnmap output) with host IP addresses\n\tand ports and runs the clusterd fingerprinting engine on all HTTP/S servers\n\tidentified. All common app server URLs will be checked for each server in order to\n\tattempt to identify what may be running.\n\t'
    'Read the input file, for now we only support nmap gnmap - should have been run with\n\tthe -sV flag to detect HTTP/S servers on non-standard ports'
    try:
        targets = {
            
        }
        inFile = open(options.discovery_file, 'r')
        if (detectFileType(inFile) == 'gnmap'):
            targets = parseGnmap(inFile)
        else:
            utility.Msg('Discovery input file does not appear to be in nmap gnmap format', LOG.ERROR)
            return
        inFile.close()
        runDiscovery(targets, options)
    except KeyboardInterrupt:
        pass
    except OSError:
        utility.Msg('Error loading gnmap file for discovery', LOG.ERROR)

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