From e7315ccd4d2b12f08955fc013c3296dc2dc02173 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 16 Oct 2021 23:12:18 +0200 Subject: [PATCH] Fixes #4861 --- lib/core/settings.py | 2 +- sqlmap.py | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index a7e22a9ba..381b626fc 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from thirdparty import six from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.5.10.15" +VERSION = "1.5.10.16" 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) diff --git a/sqlmap.py b/sqlmap.py index 047aee9e3..d3b8b872d 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -57,12 +57,13 @@ try: from lib.core.common import setPaths from lib.core.common import weAreFrozen from lib.core.convert import getUnicode - from lib.core.data import cmdLineOptions - from lib.core.data import conf - from lib.core.data import kb from lib.core.common import MKSTEMP_PREFIX from lib.core.common import setColor from lib.core.common import unhandledExceptionMessage + from lib.core.data import cmdLineOptions + from lib.core.data import conf + from lib.core.data import kb + from lib.core.datatype import OrderedSet from lib.core.compat import LooseVersion from lib.core.compat import xrange from lib.core.exception import SqlmapBaseException @@ -190,7 +191,7 @@ def main(): target = None try: - kb.targets.clear() + kb.targets = OrderedSet() target = targets[i] if not re.search(r"(?i)\Ahttp[s]*://", target):