mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-29 10:13:15 +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
|
# Forge the error-based SQL injection request
|
||||||
vector = agent.cleanupPayload(kb.injection.data[PAYLOAD.TECHNIQUE.ERROR].vector)
|
vector = agent.cleanupPayload(kb.injection.data[PAYLOAD.TECHNIQUE.ERROR].vector)
|
||||||
query = unescaper.unescape(vector)
|
query = agent.prefixQuery(vector)
|
||||||
query = agent.prefixQuery(query)
|
|
||||||
query = agent.suffixQuery(query)
|
query = agent.suffixQuery(query)
|
||||||
injExpression = expression.replace(field, nulledCastedField, 1)
|
injExpression = expression.replace(field, nulledCastedField, 1)
|
||||||
injExpression = unescaper.unescape(injExpression)
|
injExpression = unescaper.unescape(injExpression)
|
||||||
|
@ -109,7 +108,8 @@ def __errorFields(expression, expressionFields, expressionFieldsList, expected=N
|
||||||
if output:
|
if output:
|
||||||
output = output.replace(kb.misc.space, " ")
|
output = output.replace(kb.misc.space, " ")
|
||||||
|
|
||||||
outputs.append(output)
|
if output is not None:
|
||||||
|
outputs.append(output)
|
||||||
|
|
||||||
return outputs
|
return outputs
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user