mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
it was a real pain in the ass to have SELECT COUNT(*) for all rows (it was processed by a limit logic)
This commit is contained in:
parent
9479a68eb5
commit
7613134515
|
@ -194,7 +194,8 @@ def errorUse(expression, expected=None, resumeValue=True, dump=False):
|
|||
expression.upper() and ((Backend.getIdentifiedDbms() not in FROM_TABLE) \
|
||||
or (Backend.getIdentifiedDbms() in FROM_TABLE and not \
|
||||
expression.upper().endswith(FROM_TABLE[Backend.getIdentifiedDbms()]))) \
|
||||
and "EXISTS(" not in expression.upper() and ("(CASE" not in expression.upper() or ("(CASE" in expression.upper() and "WHEN use" in expression))):
|
||||
and "EXISTS(" not in expression.upper() and "COUNT(*)" not in expression.upper() \
|
||||
and ("(CASE" not in expression.upper() or ("(CASE" in expression.upper() and "WHEN use" in expression))):
|
||||
|
||||
limitRegExp = re.search(queries[Backend.getIdentifiedDbms()].limitregexp.query, expression, re.I)
|
||||
topLimit = re.search("TOP\s+([\d]+)\s+", expression, re.I)
|
||||
|
|
|
@ -137,7 +137,8 @@ def unionUse(expression, unpack=True, dump=False):
|
|||
" FROM " in expression.upper() and ((Backend.getIdentifiedDbms() \
|
||||
not in FROM_TABLE) or (Backend.getIdentifiedDbms() in FROM_TABLE \
|
||||
and not expression.upper().endswith(FROM_TABLE[Backend.getIdentifiedDbms()]))) \
|
||||
and "EXISTS(" not in expression.upper() and "(CASE" not in expression.upper():
|
||||
and "EXISTS(" not in expression.upper() and "COUNT(*)" not in expression.upper() \
|
||||
and "(CASE" not in expression.upper():
|
||||
|
||||
limitRegExp = re.search(queries[Backend.getIdentifiedDbms()].limitregexp.query, expression, re.I)
|
||||
topLimit = re.search("TOP\s+([\d]+)\s+", expression, re.I)
|
||||
|
|
Loading…
Reference in New Issue
Block a user