mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
Extra check on --union-cols value
This commit is contained in:
parent
da7eb329bb
commit
99a23e23cf
|
@ -522,6 +522,11 @@ def __setUnion():
|
||||||
conf.uColsStart = int(conf.uColsStart)
|
conf.uColsStart = int(conf.uColsStart)
|
||||||
conf.uColsStop = int(conf.uColsStop)
|
conf.uColsStop = int(conf.uColsStop)
|
||||||
|
|
||||||
|
if conf.uColsStart > conf.uColsStop:
|
||||||
|
errMsg = "--union-cols range has to be from lower to "
|
||||||
|
errMsg += "higher number of columns"
|
||||||
|
raise sqlmapSyntaxException, errMsg
|
||||||
|
|
||||||
if isinstance(conf.uChar, basestring) and conf.uChar != "NULL":
|
if isinstance(conf.uChar, basestring) and conf.uChar != "NULL":
|
||||||
debugMsg = "setting the UNION query SQL injection character to '%s'" % conf.uChar
|
debugMsg = "setting the UNION query SQL injection character to '%s'" % conf.uChar
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user