|
30 | 30 | from lib.core.common import hashDBRetrieve |
31 | 31 | from lib.core.common import hashDBWrite |
32 | 32 | from lib.core.common import intersect |
| 33 | +from lib.core.common import isDigit |
33 | 34 | from lib.core.common import joinValue |
34 | 35 | from lib.core.common import listToStrValue |
35 | 36 | from lib.core.common import parseFilePaths |
@@ -117,7 +118,7 @@ def checkSqlInjection(place, parameter, value): |
117 | 118 | threadData = getCurrentThreadData() |
118 | 119 |
|
119 | 120 | # Favoring non-string specific boundaries in case of digit-like parameter values |
120 | | - if value.isdigit(): |
| 121 | + if isDigit(value): |
121 | 122 | 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 ('"', '\''))) |
122 | 123 | boundaries = kb.cache.intBoundaries |
123 | 124 | elif value.isalpha(): |
@@ -226,8 +227,8 @@ def checkSqlInjection(place, parameter, value): |
226 | 227 | # Skip test if the user's wants to test only for a specific |
227 | 228 | # technique |
228 | 229 | 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 " |
231 | 232 | debugMsg += "%s techniques" % " & ".join(PAYLOAD.SQLINJECTION[_] for _ in conf.technique) |
232 | 233 | logger.debug(debugMsg) |
233 | 234 | continue |
@@ -651,7 +652,7 @@ def genCmpPayload(): |
651 | 652 | except SqlmapConnectionException as ex: |
652 | 653 | debugMsg = "problem occurred most likely because the " |
653 | 654 | 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) |
655 | 656 | logger.debug(debugMsg) |
656 | 657 |
|
657 | 658 | # In case of time-based blind or stacked queries |
|
0 commit comments