From 3d89668495345d51cbf5c1ef87c2dbed36655306 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 9 May 2019 10:16:10 +0200 Subject: [PATCH] Fixes #3640 --- lib/controller/checks.py | 2 +- lib/core/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 4707f6dc5..4ab2fef21 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -527,7 +527,7 @@ def checkSqlInjection(place, parameter, value): continue elif kb.heuristicPage and not any((conf.string, conf.notString, conf.regexp, conf.code, kb.nullConnection)): _ = comparison(kb.heuristicPage, None, getRatioValue=True) - if _ > kb.matchRatio: + if (_ or 0) > (kb.matchRatio or 0): kb.matchRatio = _ logger.debug("adjusting match ratio for current parameter to %.3f" % kb.matchRatio) diff --git a/lib/core/settings.py b/lib/core/settings.py index 99440e488..1cf92055e 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.3.5.60" +VERSION = "1.3.5.61" 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)