Proper fix for --start and --stop consistency amongst different techniques

This commit is contained in:
Bernardo Damele
2011-07-26 10:06:28 +00:00
parent e71f96afe7
commit 938716e361
3 changed files with 4 additions and 4 deletions

View File

@@ -1700,8 +1700,8 @@ def __basicOptionValidation():
raise sqlmapSyntaxException, errMsg
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:
errMsg = "value for --start (limitStart) option must be smaller than value for --stop (limitStop) option"
conf.limitStop is not None and isinstance(conf.limitStop, int) and conf.limitStop < conf.limitStart:
errMsg = "value for --start (limitStart) option must be smaller or equal than value for --stop (limitStop) option"
raise sqlmapSyntaxException, errMsg
if conf.firstChar is not None and isinstance(conf.firstChar, int) and conf.firstChar > 0 and \