Fix for -D/-T lists with spaces after commas (e.g. -T 'users, creds')

This commit is contained in:
Miroslav Štampar 2026-11-12 14:35:49 +01:00
parent 7827b2c389
commit 7944f0e7e8
2 changed files with 4 additions and 3 deletions

View file

@ -2119,8 +2119,9 @@ def _cleanupOptions():
if conf.torType:
conf.torType = conf.torType.upper()
if conf.col:
conf.col = re.sub(r"\s*,\s*", ',', conf.col)
for _ in ("db", "tbl", "col"):
if conf.get(_):
conf[_] = re.sub(r"\s*,\s*", ',', conf[_])
if conf.exclude:
regex = False

View file

@ -19,7 +19,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.11.35"
VERSION = "1.10.11.36"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)