mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
Minor adjustment and bug fix
This commit is contained in:
parent
91dd609e26
commit
fdf417f57e
|
@ -1072,9 +1072,9 @@ def __setVerbosity():
|
||||||
|
|
||||||
if conf.verbose == 1:
|
if conf.verbose == 1:
|
||||||
logger.setLevel(logging.INFO)
|
logger.setLevel(logging.INFO)
|
||||||
elif conf.verbose > 1 and conf.eta:
|
elif conf.verbose > 2 and conf.eta:
|
||||||
conf.verbose = 1
|
conf.verbose = 2
|
||||||
logger.setLevel(logging.INFO)
|
logger.setLevel(logging.DEBUG)
|
||||||
elif conf.verbose == 2:
|
elif conf.verbose == 2:
|
||||||
logger.setLevel(logging.DEBUG)
|
logger.setLevel(logging.DEBUG)
|
||||||
elif conf.verbose == 3:
|
elif conf.verbose == 3:
|
||||||
|
|
|
@ -64,7 +64,10 @@ def queryOutputLength(expression, payload):
|
||||||
return None, None, None
|
return None, None, None
|
||||||
|
|
||||||
if selectDistinctExpr:
|
if selectDistinctExpr:
|
||||||
lengthExpr = "SELECT %s FROM (%s) AS T%s" % (lengthQuery % regExpr, expression, randomStr(4))
|
lengthExpr = "SELECT %s FROM (%s)" % (lengthQuery % regExpr, expression)
|
||||||
|
|
||||||
|
if kb.dbms in ( "MySQL", "PostgreSQL" ):
|
||||||
|
lengthExpr += " AS %s" % randomStr(lowercase=True)
|
||||||
elif select:
|
elif select:
|
||||||
lengthExpr = expression.replace(regExpr, lengthQuery % regExpr, 1)
|
lengthExpr = expression.replace(regExpr, lengthQuery % regExpr, 1)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user