mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
warning user in cases of "User xyz already has more than 'max_user_connections' active connections"
This commit is contained in:
parent
831f79b851
commit
052d9455fe
|
@ -608,8 +608,14 @@ def start():
|
|||
finally:
|
||||
showHttpErrorCodes()
|
||||
|
||||
if kb.maxConnectionsFlag:
|
||||
warnMsg = "it appears that the target "
|
||||
warnMsg += "has a maximum connections "
|
||||
warnMsg += "constraint"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
if kb.dataOutputFlag and not conf.multipleTargets:
|
||||
logger.info("Fetched data logged to text files under '%s'" % conf.outputPath)
|
||||
logger.info("fetched data logged to text files under '%s'" % conf.outputPath)
|
||||
|
||||
if conf.multipleTargets and conf.resultsFilename:
|
||||
infoMsg = "you can find results of scanning in multiple targets "
|
||||
|
|
|
@ -1465,6 +1465,7 @@ def __setKnowledgeBaseAttributes(flushAll=True):
|
|||
kb.locks[_] = threading.Lock()
|
||||
|
||||
kb.matchRatio = None
|
||||
kb.maxConnectionsFlag = False
|
||||
kb.mergeCookies = None
|
||||
kb.multiThreadMode = False
|
||||
kb.negativeLogic = False
|
||||
|
|
|
@ -727,6 +727,7 @@ class Connect:
|
|||
if not response and removeReflection:
|
||||
page = removeReflectiveValues(page, payload)
|
||||
|
||||
kb.maxConnectionsFlag = re.search(r"max.+connections", page or "", re.I) is not None
|
||||
kb.permissionFlag = re.search(r"(command|permission|access)\s*(was|is)?\s*denied", page or "", re.I) is not None
|
||||
|
||||
if content or response:
|
||||
|
|
Loading…
Reference in New Issue
Block a user