def fetch_webroot(ip, fingerprint, cookie):
	""" Fetch the webroot for the CF server; this is where our
	payload is stashed
	"""

	base = "http://{0}:{1}".format(ip, fingerprint.port)

	if fingerprint.version in ['5.0']:
		uri = "/CFIDE/administrator/server_settings/mappings.cfm?mapname=/"
	else:
		uri = '/CFIDE/administrator/settings/mappings.cfm?mapname=/CFIDE'

	response = utility.requests_get(base+uri, cookies=cookie)
	if response.status_code is 200:

		if fingerprint.version in ['5.0']:
			data = findall("name=\"DirectoryPath\" value=\"(.*?)\"",
													response.content)
			if data and 0 > len(data):
				data = data[0]
		else:
			data = findall("<td nowrap><font class=\"label\">&nbsp; (.*?) &nbsp;",
																 response.content)
			if data and len(data) > 0:
				data = data[1]

		if data:
			return data
dataset/ETHPy150Open hatRiot/clusterd/src/platform/coldfusion/deployers/schedule_job_old.py/fetch_webroot/swapped operands of `>`