Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56a918c

Browse files
committed
Minor refactoring
1 parent bcd62ec commit 56a918c

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

lib/controller/checks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def checkSqlInjection(place, parameter, value):
9696

9797
# Favoring non-string specific boundaries in case of digit-like parameter values
9898
if value.isdigit():
99-
boundaries = sorted(copy.deepcopy(conf.boundaries), key=lambda boundary: any(_ in (boundary.prefix or "") or _ in (boundary.suffix or "") for _ in ('"', '\'')))
99+
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 ('"', '\'')))
100+
boundaries = kb.cache.intBoundaries
100101
else:
101102
boundaries = conf.boundaries
102103

lib/core/option.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,6 +1844,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
18441844
kb.cache.addrinfo = {}
18451845
kb.cache.content = {}
18461846
kb.cache.encoding = {}
1847+
kb.cache.intBoundaries = None
18471848
kb.cache.parsedDbms = {}
18481849
kb.cache.regex = {}
18491850
kb.cache.stdev = {}

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.9.18"
22+
VERSION = "1.0.9.19"
2323
REVISION = getRevisionNumber()
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}

txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ b46521e29ea3d813bab5aeb16cac6498 extra/shutils/duplicates.py
2020
cc9c82cfffd8ee9b25ba3af6284f057e extra/sqlharvest/__init__.py
2121
4f2f817596540d82f9fcc0c5b2228beb extra/sqlharvest/sqlharvest.py
2222
2daa39e4d59526acb4772b6c47eb315f lib/controller/action.py
23-
0408ef9325f4cde05df8732aeb67323b lib/controller/checks.py
23+
44bb5bdf83e0c2dba13c07018b3766c8 lib/controller/checks.py
2424
7c5ba631796f12d6de9b667e4cc7812b lib/controller/controller.py
2525
5ae8f657fd4e8026fcc9624f5b5533fe lib/controller/handler.py
2626
cc9c82cfffd8ee9b25ba3af6284f057e lib/controller/__init__.py
@@ -39,13 +39,13 @@ e4aec2b11c1ad6039d0c3dbbfbc5eb1a lib/core/exception.py
3939
cc9c82cfffd8ee9b25ba3af6284f057e lib/core/__init__.py
4040
91c514013daa796e2cdd940389354eac lib/core/log.py
4141
b9779615206791e6ebbaa84947842b49 lib/core/optiondict.py
42-
ccd57542de8f3ae812a017c8c6da12b6 lib/core/option.py
42+
1c6b49baa9aaac11b9e85be274ce2ecc lib/core/option.py
4343
1e8948dddbd12def5c2af52530738059 lib/core/profiling.py
4444
e60456db5380840a586654344003d4e6 lib/core/readlineng.py
4545
5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py
4646
99a2b496b9d5b546b335653ca801153f lib/core/revision.py
4747
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
48-
75f0fdc76631aa563d217e4ca5993628 lib/core/settings.py
48+
b160ccb31688ecf1c91d62ed0de26a9f lib/core/settings.py
4949
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
5050
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
5151
0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py

0 commit comments

Comments
 (0)