Skip to content

Commit ad529f2

Browse files
committed
Minor update
1 parent 3d2f893 commit ad529f2

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.6.11.9"
23+
VERSION = "1.6.11.10"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/parse/cmdline.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,9 @@ def cmdLineParser(argv=None):
839839
parser.add_argument("--vuln-test", dest="vulnTest", action="store_true",
840840
help=SUPPRESS)
841841

842+
parser.add_argument("--disable-json", dest="disableJson", action="store_true",
843+
help=SUPPRESS)
844+
842845
# API options
843846
parser.add_argument("--api", dest="api", action="store_true",
844847
help=SUPPRESS)

lib/techniques/union/use.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def unionUse(expression, unpack=True, dump=False):
252252
debugMsg += "it does not play well with UNION query SQL injection"
253253
singleTimeDebugMessage(debugMsg)
254254

255-
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.ORACLE, DBMS.PGSQL, DBMS.MSSQL, DBMS.SQLITE) and expressionFields and not any((conf.binaryFields, conf.limitStart, conf.limitStop, conf.forcePartial)):
255+
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.ORACLE, DBMS.PGSQL, DBMS.MSSQL, DBMS.SQLITE) and expressionFields and not any((conf.binaryFields, conf.limitStart, conf.limitStop, conf.forcePartial, conf.disableJson)):
256256
match = re.search(r"SELECT\s*(.+?)\bFROM", expression, re.I)
257257
if match and not (Backend.isDbms(DBMS.ORACLE) and FROM_DUMMY_TABLE[DBMS.ORACLE] in expression) and not re.search(r"\b(MIN|MAX|COUNT)\(", expression):
258258
kb.jsonAggMode = True

0 commit comments

Comments
 (0)