parameters: ()
docstring: Define a configuration parameter if we are running in multiple target
      mode.
docstring_summary: Define a configuration parameter if we are running in multiple target
      mode.
docstring_tokens: Define a configuration parameter if we are running in multiple target mode .
function: def _setMultipleTargets():
      """
      Define a configuration parameter if we are running in multiple target
      mode.
      """
  
      initialTargetsCount = len(kb.targets)
      addedTargetUrls = set()
  
      if not conf.logFile:
          return
  
      debugMsg = "parsing targets list from '%s'" % conf.logFile
      logger.debug(debugMsg)
  
      if not os.path.exists(conf.logFile):
          errMsg = "the specified list of targets does not exist"
          raise SqlmapFilePathException(errMsg)
  
      if os.path.isfile(conf.logFile):
          _feedTargetsDict(conf.logFile, addedTargetUrls)
  
      elif os.path.isdir(conf.logFile):
          files = os.listdir(conf.logFile)
          files.sort()
  
          for reqFile in files:
              if not re.search("([\d]+)\-request", reqFile):
                  continue
  
              _feedTargetsDict(os.path.join(conf.logFile, reqFile), addedTargetUrls)
  
      else:
          errMsg = "the specified list of targets is not a file "
          errMsg += "nor a directory"
          raise SqlmapFilePathException(errMsg)
  
      updatedTargetsCount = len(kb.targets)
  
      if updatedTargetsCount > initialTargetsCount:
          infoMsg = "sqlmap parsed %d " % (updatedTargetsCount - initialTargetsCount)
          infoMsg += "(parameter unique) requests from the "
          infoMsg += "targets list ready to be tested"
          logger.info(infoMsg)
function_tokens: def _setMultipleTargets ( ) : initialTargetsCount = len ( kb . targets ) addedTargetUrls = set ( ) if not conf . logFile : return debugMsg = "parsing targets list from '%s'" % conf . logFile logger . debug ( debugMsg ) if not os . path . exists ( conf . logFile ) : errMsg = "the specified list of targets does not exist" raise SqlmapFilePathException ( errMsg ) if os . path . isfile ( conf . logFile ) : _feedTargetsDict ( conf . logFile , addedTargetUrls ) elif os . path . isdir ( conf . logFile ) : files = os . listdir ( conf . logFile ) files . sort ( ) for reqFile in files : if not re . search ( "([\d]+)\-request" , reqFile ) : continue _feedTargetsDict ( os . path . join ( conf . logFile , reqFile ) , addedTargetUrls ) else : errMsg = "the specified list of targets is not a file " errMsg += "nor a directory" raise SqlmapFilePathException ( errMsg ) updatedTargetsCount = len ( kb . targets ) if updatedTargetsCount > initialTargetsCount : infoMsg = "sqlmap parsed %d " % ( updatedTargetsCount - initialTargetsCount ) infoMsg += "(parameter unique) requests from the " infoMsg += "targets list ready to be tested" logger . info ( infoMsg )