Skip to content

Commit 66c1f72

Browse files
committed
Minor optimization
1 parent b6584c8 commit 66c1f72

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

lib/controller/checks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ def checkSqlInjection(place, parameter, value):
110110
if value.isdigit():
111111
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 ('"', '\'')))
112112
boundaries = kb.cache.intBoundaries
113+
elif value.isalpha():
114+
kb.cache.alphaBoundaries = kb.cache.alphaBoundaries or sorted(copy.deepcopy(conf.boundaries), key=lambda boundary: not any(_ in (boundary.prefix or "") or _ in (boundary.suffix or "") for _ in ('"', '\'')))
115+
boundaries = kb.cache.alphaBoundaries
113116
else:
114117
boundaries = conf.boundaries
115118

lib/core/option.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,6 +1889,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
18891889
kb.cache.addrinfo = {}
18901890
kb.cache.content = {}
18911891
kb.cache.encoding = {}
1892+
kb.cache.alphaBoundaries = None
18921893
kb.cache.intBoundaries = None
18931894
kb.cache.parsedDbms = {}
18941895
kb.cache.regex = {}

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.enums import OS
2020

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

txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ f96467fc5cd1d87f52dd7966c8ae6e79 extra/shutils/regressiontest.py
2121
5fb9aaf874daa47ea2b672a22740e56b extra/sqlharvest/__init__.py
2222
1fc7772edce5a01c31f3932b2fc4c1c6 extra/sqlharvest/sqlharvest.py
2323
21bf2b3a7a22b8cd5d96a6457a1b4997 lib/controller/action.py
24-
8266f1119366b0857d88f139de9b2035 lib/controller/checks.py
24+
4e5cdc969503780c6a3ee5e3bbfca82a lib/controller/checks.py
2525
2db2666dba713c710d248a62b2c1c1fe lib/controller/controller.py
2626
d2cdb9e832e18a81e936ca3348144b16 lib/controller/handler.py
2727
5fb9aaf874daa47ea2b672a22740e56b lib/controller/__init__.py
@@ -40,13 +40,13 @@ d3ed5f9baa074df33390d33164d9d8b5 lib/core/defaults.py
4040
5fb9aaf874daa47ea2b672a22740e56b lib/core/__init__.py
4141
f872699e948d0692ce11b54781da814c lib/core/log.py
4242
5adb07b2771f26822e94c75c2cb9db0b lib/core/optiondict.py
43-
35187108c74a957ebadf194207737162 lib/core/option.py
43+
eec64e3d4c3f77eded3270b8116698ea lib/core/option.py
4444
8764d2d8610fff5f4aef897b2b1f1006 lib/core/profiling.py
4545
2de91262fcc6bd51c987fd2f8a59ff31 lib/core/readlineng.py
4646
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
4747
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
4848
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49-
42d4b8279ae70e235ff6d52185671eb4 lib/core/settings.py
49+
ec31a0f93542b8b7984f94eb96684fe8 lib/core/settings.py
5050
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
5151
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
5252
d93501771b41315f9fb949305b6ed257 lib/core/target.py

0 commit comments

Comments
 (0)