mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 05:31:32 +00:00
cosmetics
This commit is contained in:
@@ -412,7 +412,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
|
|||||||
found = False
|
found = False
|
||||||
query = query.replace("DISTINCT ", "")
|
query = query.replace("DISTINCT ", "")
|
||||||
|
|
||||||
if expected == EXPECTED.BOOL and not query.startswith("SELECT "):
|
if expected == EXPECTED.BOOL and not query.upper().startswith("SELECT "):
|
||||||
query = agent.forgeCaseStatement(query)
|
query = agent.forgeCaseStatement(query)
|
||||||
|
|
||||||
if inband and kb.unionTest is not None:
|
if inband and kb.unionTest is not None:
|
||||||
@@ -438,7 +438,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
|
|||||||
kb.technique = PAYLOAD.TECHNIQUE.BOOLEAN
|
kb.technique = PAYLOAD.TECHNIQUE.BOOLEAN
|
||||||
if expected == EXPECTED.BOOL:
|
if expected == EXPECTED.BOOL:
|
||||||
booleanExpression = expression
|
booleanExpression = expression
|
||||||
if booleanExpression.startswith("SELECT "):
|
if booleanExpression.upper().startswith("SELECT "):
|
||||||
booleanExpression = booleanExpression[len("SELECT "):]
|
booleanExpression = booleanExpression[len("SELECT "):]
|
||||||
value = __goBooleanProxy(booleanExpression, resumeValue)
|
value = __goBooleanProxy(booleanExpression, resumeValue)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user