mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Minor update for an Issue #222
This commit is contained in:
parent
8a5844a364
commit
fdcdd11cb9
|
@ -625,7 +625,7 @@ def checkFalsePositives(injection):
|
|||
|
||||
def checkSuhoshinPatch(injection):
|
||||
"""
|
||||
Checks for existence of Suhoshin-patch (like) protection mechanism
|
||||
Checks for existence of Suhoshin-patch (and alike) protection mechanism(s)
|
||||
"""
|
||||
|
||||
if injection.place == PLACE.GET:
|
||||
|
@ -634,7 +634,8 @@ def checkSuhoshinPatch(injection):
|
|||
kb.injection = injection
|
||||
randInt = randomInt()
|
||||
|
||||
if not checkBooleanExpression("%d=%s%d" % (randInt, " " * SUHOSHIN_MAX_VALUE_LENGTH, randInt)):
|
||||
_ = " " * SUHOSHIN_MAX_VALUE_LENGTH
|
||||
if not checkBooleanExpression("%d%s=%s%d" % (randInt, _, _, randInt)):
|
||||
warnMsg = "parameter length constraint "
|
||||
warnMsg += "mechanism detected (e.g. Suhoshin patch). "
|
||||
warnMsg += "Potential problems in enumeration phase can be expected"
|
||||
|
|
Loading…
Reference in New Issue
Block a user