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

Skip to content

Commit 7066e7c

Browse files
committed
Trivial update
1 parent 8dad7dd commit 7066e7c

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

lib/controller/checks.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from lib.core.common import hashDBRetrieve
3131
from lib.core.common import hashDBWrite
3232
from lib.core.common import intersect
33+
from lib.core.common import isDigit
3334
from lib.core.common import joinValue
3435
from lib.core.common import listToStrValue
3536
from lib.core.common import parseFilePaths
@@ -117,7 +118,7 @@ def checkSqlInjection(place, parameter, value):
117118
threadData = getCurrentThreadData()
118119

119120
# Favoring non-string specific boundaries in case of digit-like parameter values
120-
if value.isdigit():
121+
if isDigit(value):
121122
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 ('"', '\'')))
122123
boundaries = kb.cache.intBoundaries
123124
elif value.isalpha():
@@ -226,8 +227,8 @@ def checkSqlInjection(place, parameter, value):
226227
# Skip test if the user's wants to test only for a specific
227228
# technique
228229
if conf.technique and isinstance(conf.technique, list) and stype not in conf.technique:
229-
debugMsg = "skipping test '%s' because the user " % title
230-
debugMsg += "specified to test only for "
230+
debugMsg = "skipping test '%s' because user " % title
231+
debugMsg += "specified testing of only "
231232
debugMsg += "%s techniques" % " & ".join(PAYLOAD.SQLINJECTION[_] for _ in conf.technique)
232233
logger.debug(debugMsg)
233234
continue
@@ -651,7 +652,7 @@ def genCmpPayload():
651652
except SqlmapConnectionException as ex:
652653
debugMsg = "problem occurred most likely because the "
653654
debugMsg += "server hasn't recovered as expected from the "
654-
debugMsg += "error-based payload used ('%s')" % getSafeExString(ex)
655+
debugMsg += "used error-based payload ('%s')" % getSafeExString(ex)
655656
logger.debug(debugMsg)
656657

657658
# In case of time-based blind or stacked queries

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

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

0 commit comments

Comments
 (0)