def headersParser(headers):
 if (not kb.headerPaths):
  kb.headerPaths = {'cookie': os.path.join(paths.SQLMAP_XML_BANNER_PATH, 'cookie.xml'), 'microsoftsharepointteamservices': os.path.join(paths.SQLMAP_XML_BANNER_PATH, 'sharepoint.xml'), 'server': os.path.join(paths.SQLMAP_XML_BANNER_PATH, 'server.xml'), 'servlet-engine': os.path.join(paths.SQLMAP_XML_BANNER_PATH, 'servlet.xml'), 'set-cookie': os.path.join(paths.SQLMAP_XML_BANNER_PATH, 'cookie.xml'), 'x-aspnet-version': os.path.join(paths.SQLMAP_XML_BANNER_PATH, 'x-aspnet-version.xml'), 'x-powered-by': os.path.join(paths.SQLMAP_XML_BANNER_PATH, 'x-powered-by.xml')}
 for header in itertools.ifilter((lambda x: (x in kb.headerPaths)), headers):
  value = headers[header]
  xmlfile = kb.headerPaths[header]
  handler = FingerprintHandler(value, kb.headersFp)
  parseXmlFile(xmlfile, handler)
  parseXmlFile(paths.GENERIC_XML, handler)

def headersParser ( headers ) : if ( not kb . headerPaths ) : kb . headerPaths = { 'cookie' : os . path . join ( paths . SQLMAP_XML_BANNER_PATH , 'cookie.xml' ) , 'microsoftsharepointteamservices' : os . path . join ( paths . SQLMAP_XML_BANNER_PATH , 'sharepoint.xml' ) , 'server' : os . path . join ( paths . SQLMAP_XML_BANNER_PATH , 'server.xml' ) , 'servlet-engine' : os . path . join ( paths . SQLMAP_XML_BANNER_PATH , 'servlet.xml' ) , 'set-cookie' : os . path . join ( paths . SQLMAP_XML_BANNER_PATH , 'cookie.xml' ) , 'x-aspnet-version' : os . path . join ( paths . SQLMAP_XML_BANNER_PATH , 'x-aspnet-version.xml' ) , 'x-powered-by' : os . path . join ( paths . SQLMAP_XML_BANNER_PATH , 'x-powered-by.xml' ) } for header in itertools . ifilter ( ( lambda x : ( x in kb . headerPaths ) ) , headers ) : value = headers [ header ] xmlfile = kb . headerPaths [ header ] handler = FingerprintHandler ( value , kb . headersFp ) parseXmlFile ( xmlfile , handler ) parseXmlFile ( paths . GENERIC_XML , handler )
this function calls a class that parses the input http headers to fingerprint the back-end database management system operating system and the web application technology .