minor update

This commit is contained in:
Miroslav Stampar 2011-05-26 15:23:28 +00:00
parent 79f0b3a92a
commit bf2b58ba82
2 changed files with 7 additions and 0 deletions

View File

@ -99,6 +99,7 @@ class WARNFLAGS:
RANDOM_AGENT = 'randomAgent' RANDOM_AGENT = 'randomAgent'
DATA_TO_STDOUT = 'dataToStdout' DATA_TO_STDOUT = 'dataToStdout'
THREADS = 'threads' THREADS = 'threads'
PIVOT_LIMIT = 'pivotLimit'
class EXPECTED: class EXPECTED:
BOOL = "bool" BOOL = "bool"

View File

@ -7,6 +7,7 @@ Copyright (c) 2006-2011 sqlmap developers (http://sqlmap.sourceforge.net/)
See the file 'doc/COPYING' for copying permission See the file 'doc/COPYING' for copying permission
""" """
import logging
import re import re
import time import time
@ -30,6 +31,7 @@ from lib.core.common import randomStr
from lib.core.common import readInput from lib.core.common import readInput
from lib.core.common import safeStringFormat from lib.core.common import safeStringFormat
from lib.core.common import safeSQLIdentificatorNaming from lib.core.common import safeSQLIdentificatorNaming
from lib.core.common import singleTimeLogMessage
from lib.core.common import strToHex from lib.core.common import strToHex
from lib.core.common import unArrayizeValue from lib.core.common import unArrayizeValue
from lib.core.common import unsafeSQLIdentificatorNaming from lib.core.common import unsafeSQLIdentificatorNaming
@ -47,6 +49,7 @@ from lib.core.dicts import firebirdPrivs
from lib.core.enums import DBMS from lib.core.enums import DBMS
from lib.core.enums import EXPECTED from lib.core.enums import EXPECTED
from lib.core.enums import PAYLOAD from lib.core.enums import PAYLOAD
from lib.core.enums import WARNFLAGS
from lib.core.exception import sqlmapConnectionException from lib.core.exception import sqlmapConnectionException
from lib.core.exception import sqlmapMissingMandatoryOptionException from lib.core.exception import sqlmapMissingMandatoryOptionException
from lib.core.exception import sqlmapNoneDataException from lib.core.exception import sqlmapNoneDataException
@ -1404,6 +1407,9 @@ class Enumeration:
if all([conf.limitStart, conf.limitStop]): if all([conf.limitStart, conf.limitStop]):
if (i + 1) < conf.limitStart: if (i + 1) < conf.limitStart:
warnMsg = "skipping first %d pivot " % conf.limitStart
warnMsg += "point values"
singleTimeLogMessage(warnMsg, logging.WARN, WARNFLAGS.PIVOT_LIMIT)
break break
elif (i + 1) > conf.limitStop: elif (i + 1) > conf.limitStop:
breakRetrieval = True breakRetrieval = True