mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Minor update for an Issue #222
This commit is contained in:
@@ -625,7 +625,7 @@ def checkFalsePositives(injection):
|
|||||||
|
|
||||||
def checkSuhoshinPatch(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:
|
if injection.place == PLACE.GET:
|
||||||
@@ -634,7 +634,8 @@ def checkSuhoshinPatch(injection):
|
|||||||
kb.injection = injection
|
kb.injection = injection
|
||||||
randInt = randomInt()
|
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 = "parameter length constraint "
|
||||||
warnMsg += "mechanism detected (e.g. Suhoshin patch). "
|
warnMsg += "mechanism detected (e.g. Suhoshin patch). "
|
||||||
warnMsg += "Potential problems in enumeration phase can be expected"
|
warnMsg += "Potential problems in enumeration phase can be expected"
|
||||||
|
|||||||
Reference in New Issue
Block a user