Skip to content

Commit 7e425d4

Browse files
committed
Fixes #5154
1 parent fe2042e commit 7e425d4

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

lib/controller/checks.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,23 +271,26 @@ def checkSqlInjection(place, parameter, value):
271271
logger.debug(debugMsg)
272272
continue
273273

274-
if kb.dbmsFilter and not intersect(payloadDbms, kb.dbmsFilter, True):
274+
elif kb.dbmsFilter and not intersect(payloadDbms, kb.dbmsFilter, True):
275275
debugMsg = "skipping test '%s' because " % title
276276
debugMsg += "its declared DBMS is different than provided"
277277
logger.debug(debugMsg)
278278
continue
279279

280+
elif kb.reduceTests == False:
281+
pass
282+
280283
# Skip DBMS-specific test if it does not match the
281284
# previously identified DBMS (via DBMS-specific payload)
282-
if injection.dbms and not intersect(payloadDbms, injection.dbms, True):
285+
elif injection.dbms and not intersect(payloadDbms, injection.dbms, True):
283286
debugMsg = "skipping test '%s' because " % title
284287
debugMsg += "its declared DBMS is different than identified"
285288
logger.debug(debugMsg)
286289
continue
287290

288291
# Skip DBMS-specific test if it does not match the
289292
# previously identified DBMS (via DBMS-specific error message)
290-
if kb.reduceTests and not intersect(payloadDbms, kb.reduceTests, True):
293+
elif kb.reduceTests and not intersect(payloadDbms, kb.reduceTests, True):
291294
debugMsg = "skipping test '%s' because the heuristic " % title
292295
debugMsg += "tests showed that the back-end DBMS "
293296
debugMsg += "could be '%s'" % unArrayizeValue(kb.reduceTests)

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.8.0"
23+
VERSION = "1.6.8.1"
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)

0 commit comments

Comments
 (0)