mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 19:55:47 +03:00
Redesigning for Issue #75
This commit is contained in:
parent
3d66e2dfb1
commit
3fd5119f3f
|
@ -798,9 +798,6 @@ class Agent:
|
||||||
|
|
||||||
return unescaper.unescape(lengthExpr)
|
return unescaper.unescape(lengthExpr)
|
||||||
|
|
||||||
def forgeQueryOutputLengthZero(self, expression):
|
|
||||||
return self.forgeCaseStatement(self.forgeQueryOutputLength(expression))
|
|
||||||
|
|
||||||
def forgeCaseStatement(self, expression):
|
def forgeCaseStatement(self, expression):
|
||||||
"""
|
"""
|
||||||
Take in input a query string and return its CASE statement query
|
Take in input a query string and return its CASE statement query
|
||||||
|
|
|
@ -1743,11 +1743,7 @@ class Enumeration:
|
||||||
elif Backend.isDbms(DBMS.FIREBIRD):
|
elif Backend.isDbms(DBMS.FIREBIRD):
|
||||||
query = rootQuery.blind.query % (index, column, tbl)
|
query = rootQuery.blind.query % (index, column, tbl)
|
||||||
|
|
||||||
# Skip enumeration of cells that have a value length of 0
|
value = inject.getValue(query, inband=False, error=False, dump=True)
|
||||||
if not inject.checkBooleanExpression(agent.forgeQueryOutputLengthZero(query)):
|
|
||||||
logger.debug("column '%s', entry %d is blank" % (column, index+1))
|
|
||||||
else:
|
|
||||||
value = inject.getValue(query, inband=False, error=False, dump=True)
|
|
||||||
|
|
||||||
lengths[column] = max(lengths[column], len(value) if value else 0)
|
lengths[column] = max(lengths[column], len(value) if value else 0)
|
||||||
entries[column].append(value)
|
entries[column].append(value)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user