From 56a918c4086da12447e30022e18db98410fe69d7 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 20 Sep 2016 10:03:00 +0200 Subject: [PATCH] Minor refactoring --- lib/controller/checks.py | 3 ++- lib/core/option.py | 1 + lib/core/settings.py | 2 +- txt/checksum.md5 | 6 +++--- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index de803eb09..2b89126c0 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -96,7 +96,8 @@ def checkSqlInjection(place, parameter, value): # Favoring non-string specific boundaries in case of digit-like parameter values if value.isdigit(): - boundaries = sorted(copy.deepcopy(conf.boundaries), key=lambda boundary: any(_ in (boundary.prefix or "") or _ in (boundary.suffix or "") for _ in ('"', '\''))) + kb.cache.intBoundaries = kb.cache.intBoundaries or sorted(copy.deepcopy(conf.boundaries), key=lambda boundary: any(_ in (boundary.prefix or "") or _ in (boundary.suffix or "") for _ in ('"', '\''))) + boundaries = kb.cache.intBoundaries else: boundaries = conf.boundaries diff --git a/lib/core/option.py b/lib/core/option.py index cedb1f23f..294785e1e 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1844,6 +1844,7 @@ def _setKnowledgeBaseAttributes(flushAll=True): kb.cache.addrinfo = {} kb.cache.content = {} kb.cache.encoding = {} + kb.cache.intBoundaries = None kb.cache.parsedDbms = {} kb.cache.regex = {} kb.cache.stdev = {} diff --git a/lib/core/settings.py b/lib/core/settings.py index 4d7bff57f..d07816ec9 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.9.18" +VERSION = "1.0.9.19" REVISION = getRevisionNumber() TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} diff --git a/txt/checksum.md5 b/txt/checksum.md5 index a3098c32b..a0146fa5f 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -20,7 +20,7 @@ b46521e29ea3d813bab5aeb16cac6498 extra/shutils/duplicates.py cc9c82cfffd8ee9b25ba3af6284f057e extra/sqlharvest/__init__.py 4f2f817596540d82f9fcc0c5b2228beb extra/sqlharvest/sqlharvest.py 2daa39e4d59526acb4772b6c47eb315f lib/controller/action.py -0408ef9325f4cde05df8732aeb67323b lib/controller/checks.py +44bb5bdf83e0c2dba13c07018b3766c8 lib/controller/checks.py 7c5ba631796f12d6de9b667e4cc7812b lib/controller/controller.py 5ae8f657fd4e8026fcc9624f5b5533fe lib/controller/handler.py cc9c82cfffd8ee9b25ba3af6284f057e lib/controller/__init__.py @@ -39,13 +39,13 @@ e4aec2b11c1ad6039d0c3dbbfbc5eb1a lib/core/exception.py cc9c82cfffd8ee9b25ba3af6284f057e lib/core/__init__.py 91c514013daa796e2cdd940389354eac lib/core/log.py b9779615206791e6ebbaa84947842b49 lib/core/optiondict.py -ccd57542de8f3ae812a017c8c6da12b6 lib/core/option.py +1c6b49baa9aaac11b9e85be274ce2ecc lib/core/option.py 1e8948dddbd12def5c2af52530738059 lib/core/profiling.py e60456db5380840a586654344003d4e6 lib/core/readlineng.py 5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py 99a2b496b9d5b546b335653ca801153f lib/core/revision.py 7c15dd2777af4dac2c89cab6df17462e lib/core/session.py -75f0fdc76631aa563d217e4ca5993628 lib/core/settings.py +b160ccb31688ecf1c91d62ed0de26a9f lib/core/settings.py 7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py 23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py 0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py