mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
This commit is contained in:
parent
db77f8b055
commit
9eac2339ca
|
@ -48,8 +48,7 @@ def __oneShotErrorUse(expression, field):
|
|||
|
||||
# Forge the error-based SQL injection request
|
||||
vector = agent.cleanupPayload(kb.injection.data[PAYLOAD.TECHNIQUE.ERROR].vector)
|
||||
query = unescaper.unescape(vector)
|
||||
query = agent.prefixQuery(query)
|
||||
query = agent.prefixQuery(vector)
|
||||
query = agent.suffixQuery(query)
|
||||
injExpression = expression.replace(field, nulledCastedField, 1)
|
||||
injExpression = unescaper.unescape(injExpression)
|
||||
|
@ -109,7 +108,8 @@ def __errorFields(expression, expressionFields, expressionFieldsList, expected=N
|
|||
if output:
|
||||
output = output.replace(kb.misc.space, " ")
|
||||
|
||||
outputs.append(output)
|
||||
if output is not None:
|
||||
outputs.append(output)
|
||||
|
||||
return outputs
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user