mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Removing a hard limit to use --start/--stop only for --dump scenarios
This commit is contained in:
parent
ac467bc453
commit
906cb6d3c2
|
@ -1370,7 +1370,7 @@ def expandAsteriskForColumns(expression):
|
|||
|
||||
return expression
|
||||
|
||||
def getLimitRange(count, dump=False, plusOne=False):
|
||||
def getLimitRange(count, plusOne=False):
|
||||
"""
|
||||
Returns range of values used in limit/offset constructs
|
||||
|
||||
|
@ -1382,12 +1382,11 @@ def getLimitRange(count, dump=False, plusOne=False):
|
|||
count = int(count)
|
||||
limitStart, limitStop = 1, count
|
||||
|
||||
if dump:
|
||||
if isinstance(conf.limitStop, int) and conf.limitStop > 0 and conf.limitStop < limitStop:
|
||||
limitStop = conf.limitStop
|
||||
if isinstance(conf.limitStop, int) and conf.limitStop > 0 and conf.limitStop < limitStop:
|
||||
limitStop = conf.limitStop
|
||||
|
||||
if isinstance(conf.limitStart, int) and conf.limitStart > 0 and conf.limitStart <= limitStop:
|
||||
limitStart = conf.limitStart
|
||||
if isinstance(conf.limitStart, int) and conf.limitStart > 0 and conf.limitStart <= limitStop:
|
||||
limitStart = conf.limitStart
|
||||
|
||||
retVal = xrange(limitStart, limitStop + 1) if plusOne else xrange(limitStart - 1, limitStop)
|
||||
|
||||
|
|
|
@ -275,7 +275,7 @@ class Entries:
|
|||
else:
|
||||
emptyColumns = []
|
||||
plusOne = Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2)
|
||||
indexRange = getLimitRange(count, dump=True, plusOne=plusOne)
|
||||
indexRange = getLimitRange(count, plusOne=plusOne)
|
||||
|
||||
if len(colList) < len(indexRange) > CHECK_ZERO_COLUMNS_THRESHOLD:
|
||||
for column in colList:
|
||||
|
|
Loading…
Reference in New Issue
Block a user