minor bug fix for user's provided LIMIT'd statement when technique is full UNION SQLi

This commit is contained in:
Bernardo Damele 2013-01-07 23:31:11 +00:00
parent 019fca84a2
commit c155c6df84

View File

@ -175,7 +175,7 @@ def unionUse(expression, unpack=True, dump=False):
# NOTE: we assume that only queries that get data from a table can
# return multiple entries
if (kb.injection.data[PAYLOAD.TECHNIQUE.UNION].where == PAYLOAD.WHERE.NEGATIVE or \
(dump and (conf.limitStart or conf.limitStop))) and \
(dump and (conf.limitStart or conf.limitStop)) or "LIMIT " in expression.upper()) and \
" FROM " in expression.upper() and ((Backend.getIdentifiedDbms() \
not in FROM_DUMMY_TABLE) or (Backend.getIdentifiedDbms() in FROM_DUMMY_TABLE \
and not expression.upper().endswith(FROM_DUMMY_TABLE[Backend.getIdentifiedDbms()]))) \