sqlmapproject/sqlmap · error · SqlmapSyntaxException
option '--ignore-code' should contain a list of integer…
Error message
option '--ignore-code' should contain a list of integer values or a wildcard value '%s'
What it means
Validation guard in _cleanupOptions: --ignore-code was given values that are neither the wildcard sentinel (e.g. '*') nor parseable as integers, so the int() conversion of the comma-split list raised ValueError. The input at fault is a malformed HTTP status code list like '404,abc'.
Solutions
- Pass only comma-separated integer HTTP status codes, e.g. --ignore-code=404,500
- Use the wildcard value to ignore all codes if intended
- Quote the argument properly in the shell so commas/spaces are preserved
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at lib/core/option.py:1858 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/fb68b87748aea94a.
Report an issue: GitHub.
Appendix: source
Thrown at lib/core/option.py:1858
if value and any(key.endswith(_) for _ in ("Path", "File", "Dir")):
if isinstance(value, str):
conf[key] = safeExpandUser(value)
if conf.testParameter:
conf.testParameter = urldecode(conf.testParameter)
conf.testParameter = [_.strip() for _ in re.split(PARAMETER_SPLITTING_REGEX, conf.testParameter)]
else:
conf.testParameter = []
if conf.ignoreCode:
if conf.ignoreCode == IGNORE_CODE_WILDCARD:
conf.ignoreCode = xrange(0, 1000)
else:
try:
conf.ignoreCode = [int(_) for _ in re.split(PARAMETER_SPLITTING_REGEX, conf.ignoreCode)]
except ValueError:
errMsg = "option '--ignore-code' should contain a list of integer values or a wildcard value '%s'" % IGNORE_CODE_WILDCARD
raise SqlmapSyntaxException(errMsg)
else:
conf.ignoreCode = []
if conf.abortCode:
try:
conf.abortCode = [int(_) for _ in re.split(PARAMETER_SPLITTING_REGEX, conf.abortCode)]
except ValueError:
errMsg = "option '--abort-code' should contain a list of integer values"
raise SqlmapSyntaxException(errMsg)
else:
conf.abortCode = []
if conf.paramFilter:
conf.paramFilter = [_.strip() for _ in re.split(PARAMETER_SPLITTING_REGEX, conf.paramFilter.upper())]
else:
conf.paramFilter = []
if conf.base64Parameter:View on GitHub (pinned to 0a35b20e39)