mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-20 07:00:25 +00:00
Fix for SQLite error-based retrieval doubling single quotes (e.g. x"y''z)
This commit is contained in:
parent
3325240680
commit
70702c2ce3
2 changed files with 5 additions and 1 deletions
|
|
@ -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.83"
|
||||
VERSION = "1.10.11.84"
|
||||
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)
|
||||
|
|
|
|||
|
|
@ -213,6 +213,10 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False):
|
|||
if isinstance(retVal, six.string_types):
|
||||
retVal = htmlUnescape(retVal).replace("<br>", "\n")
|
||||
|
||||
# Note: SQLite's error message of JSON_EXTRACT (e.g. "bad JSON path: '...'") quotes the (path) value by doubling its single quotes
|
||||
if Backend.isDbms(DBMS.SQLITE) and not conf.hexConvert and "JSON_EXTRACT" in (getTechniqueData().vector or ""):
|
||||
retVal = retVal.replace("''", "'")
|
||||
|
||||
retVal = _errorReplaceChars(retVal)
|
||||
|
||||
if retVal is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue