mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +03:00
Proper fix for --start and --stop consistency amongst different techniques
This commit is contained in:
parent
e71f96afe7
commit
938716e361
|
@ -1700,8 +1700,8 @@ def __basicOptionValidation():
|
||||||
raise sqlmapSyntaxException, errMsg
|
raise sqlmapSyntaxException, errMsg
|
||||||
|
|
||||||
if conf.limitStart is not None and isinstance(conf.limitStart, int) and conf.limitStart > 0 and \
|
if conf.limitStart is not None and isinstance(conf.limitStart, int) and conf.limitStart > 0 and \
|
||||||
conf.limitStop is not None and isinstance(conf.limitStop, int) and conf.limitStop <= conf.limitStart:
|
conf.limitStop is not None and isinstance(conf.limitStop, int) and conf.limitStop < conf.limitStart:
|
||||||
errMsg = "value for --start (limitStart) option must be smaller than value for --stop (limitStop) option"
|
errMsg = "value for --start (limitStart) option must be smaller or equal than value for --stop (limitStop) option"
|
||||||
raise sqlmapSyntaxException, errMsg
|
raise sqlmapSyntaxException, errMsg
|
||||||
|
|
||||||
if conf.firstChar is not None and isinstance(conf.firstChar, int) and conf.firstChar > 0 and \
|
if conf.firstChar is not None and isinstance(conf.firstChar, int) and conf.firstChar > 0 and \
|
||||||
|
|
|
@ -283,7 +283,7 @@ def errorUse(expression, expected=None, resumeValue=True, dump=False):
|
||||||
stopLimit += startLimit
|
stopLimit += startLimit
|
||||||
elif dump:
|
elif dump:
|
||||||
if conf.limitStart:
|
if conf.limitStart:
|
||||||
startLimit = conf.limitStart
|
startLimit = conf.limitStart - 1
|
||||||
if conf.limitStop:
|
if conf.limitStop:
|
||||||
stopLimit = conf.limitStop
|
stopLimit = conf.limitStop
|
||||||
|
|
||||||
|
|
|
@ -221,7 +221,7 @@ def unionUse(expression, unpack=True, dump=False):
|
||||||
stopLimit += startLimit
|
stopLimit += startLimit
|
||||||
elif dump:
|
elif dump:
|
||||||
if conf.limitStart:
|
if conf.limitStart:
|
||||||
startLimit = conf.limitStart
|
startLimit = conf.limitStart - 1
|
||||||
if conf.limitStop:
|
if conf.limitStop:
|
||||||
stopLimit = conf.limitStop
|
stopLimit = conf.limitStop
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user