mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +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
|
return expression
|
||||||
|
|
||||||
def getLimitRange(count, dump=False, plusOne=False):
|
def getLimitRange(count, plusOne=False):
|
||||||
"""
|
"""
|
||||||
Returns range of values used in limit/offset constructs
|
Returns range of values used in limit/offset constructs
|
||||||
|
|
||||||
|
@ -1382,7 +1382,6 @@ def getLimitRange(count, dump=False, plusOne=False):
|
||||||
count = int(count)
|
count = int(count)
|
||||||
limitStart, limitStop = 1, count
|
limitStart, limitStop = 1, count
|
||||||
|
|
||||||
if dump:
|
|
||||||
if isinstance(conf.limitStop, int) and conf.limitStop > 0 and conf.limitStop < limitStop:
|
if isinstance(conf.limitStop, int) and conf.limitStop > 0 and conf.limitStop < limitStop:
|
||||||
limitStop = conf.limitStop
|
limitStop = conf.limitStop
|
||||||
|
|
||||||
|
|
|
@ -275,7 +275,7 @@ class Entries:
|
||||||
else:
|
else:
|
||||||
emptyColumns = []
|
emptyColumns = []
|
||||||
plusOne = Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2)
|
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:
|
if len(colList) < len(indexRange) > CHECK_ZERO_COLUMNS_THRESHOLD:
|
||||||
for column in colList:
|
for column in colList:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user