mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
fixing a huge mess going on because of counting on error and union techniques
This commit is contained in:
parent
7ea45e9032
commit
0f7bce5c66
3 changed files with 9 additions and 6 deletions
|
|
@ -137,8 +137,7 @@ 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 "COUNT(*)" not in expression.upper() \
|
||||
and "(CASE" not in expression.upper():
|
||||
and not any(map(lambda x: x in expression.upper(), ["(CASE", "COUNT(*)", "EXISTS(", "MAX(", "MIN("])):
|
||||
|
||||
limitRegExp = re.search(queries[Backend.getIdentifiedDbms()].limitregexp.query, expression, re.I)
|
||||
topLimit = re.search("TOP\s+([\d]+)\s+", expression, re.I)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue