def run(options):

	"""Read the input file, for now we only support nmap gnmap - should have been run with
	the -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)
This module takes an input file (for now, nmap gnmap output) with host IP addresses
dataset/ETHPy150Open hatRiot/clusterd/src/module/discovery.py/run