sqlmapproject/sqlmap · error · SqlmapFilePathException
the specified list of targets does not exist
Error message
the specified list of targets does not exist
What it means
Multi-target mode (--logFile): the specified target list file does not exist on disk, so no targets can be parsed and SqlmapFilePathException aborts option initialization.
Solutions
- Correct the -l path or use an absolute path to the request log
- Ensure the file is readable by the sqlmap process
- Verify working directory when using relative paths
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at lib/core/option.py:241 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26).
Data as JSON: /api/errors/842a77db464e7813.
Report an issue: GitHub.
Appendix: source
Thrown at lib/core/option.py:241
def _setMultipleTargets():
"""
Define a configuration parameter if we are running in multiple target
mode.
"""
initialTargetsCount = len(kb.targets)
seen = 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 checkFile(conf.logFile, False):
for target in parseRequestFile(conf.logFile):
url, _, data, _, _ = target
key = re.sub(r"(\w+=)[^%s ]*" % (conf.paramDel or DEFAULT_GET_POST_DELIMITER), r"\g<1>", "%s %s" % (url, data))
if key not in seen:
kb.targets.add(target)
seen.add(key)
elif os.path.isdir(conf.logFile):
files = os.listdir(conf.logFile)
files.sort()
for reqFile in files:
if not re.search(r"([\d]+)\-request", reqFile):
continue
for target in parseRequestFile(os.path.join(conf.logFile, reqFile)):View on GitHub (pinned to 0a35b20e39)