mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-07 08:52:20 +01:00
Fix in forging query to calculate query output length - closes issue #342
This commit is contained in:
parent
7a1d484115
commit
4eaa0d17aa
1 changed files with 1 additions and 6 deletions
|
|
@ -76,12 +76,7 @@ def _goInference(payload, expression, charsetType=None, firstChar=None, lastChar
|
||||||
|
|
||||||
if not (timeBasedCompare and kb.dnsTest):
|
if not (timeBasedCompare and kb.dnsTest):
|
||||||
if (conf.eta or conf.threads > 1) and Backend.getIdentifiedDbms() and not timeBasedCompare:
|
if (conf.eta or conf.threads > 1) and Backend.getIdentifiedDbms() and not timeBasedCompare:
|
||||||
if field:
|
length = queryOutputLength(expression, payload)
|
||||||
nulledCastedField = agent.nullAndCastField(field)
|
|
||||||
injExpression = expression.replace(field, nulledCastedField, 1)
|
|
||||||
else:
|
|
||||||
injExpression = expression
|
|
||||||
length = queryOutputLength(injExpression, payload)
|
|
||||||
else:
|
else:
|
||||||
length = None
|
length = None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue