sqlmapproject/sqlmap · error · SqlmapSyntaxException
option '--abort-code' should contain a list of integer…
Error message
option '--abort-code' should contain a list of integer values
What it means
Validation guard in _cleanupOptions: --abort-code was supplied a list whose items failed int() conversion, so it contains non-integer values (e.g. '2xx' or '404, x'). Only explicit integer HTTP status codes are accepted.
Solutions
- Pass only comma-separated integer HTTP status codes, e.g. --abort-code=404,502
- Remove ranges or wildcards; --abort-code does not support them
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at lib/core/option.py:1867 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/6f4ee1e8608d297e.
Report an issue: GitHub.
Appendix: source
Thrown at lib/core/option.py:1867
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:
conf.base64Parameter = urldecode(conf.base64Parameter)
conf.base64Parameter = conf.base64Parameter.strip()
conf.base64Parameter = re.split(PARAMETER_SPLITTING_REGEX, conf.base64Parameter)
else:
conf.base64Parameter = []
if conf.agent:
conf.agent = re.sub(r"[\r\n]", "", conf.agent)
View on GitHub (pinned to 0a35b20e39)