mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-17 06:03:45 +03:00
Update (lagging checking is now always done once when time based compare is done; not only in case if statistical model is being filled)
This commit is contained in:
parent
980a0e3adb
commit
ea5c742595
|
@ -1597,6 +1597,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
|
||||||
kb.ignoreTimeout = False
|
kb.ignoreTimeout = False
|
||||||
kb.injection = InjectionDict()
|
kb.injection = InjectionDict()
|
||||||
kb.injections = []
|
kb.injections = []
|
||||||
|
kb.laggingChecked = False
|
||||||
kb.lastParserStatus = None
|
kb.lastParserStatus = None
|
||||||
|
|
||||||
kb.locks = AttribDict()
|
kb.locks = AttribDict()
|
||||||
|
|
|
@ -789,6 +789,14 @@ class Connect(object):
|
||||||
while len(kb.responseTimes) < MIN_TIME_RESPONSES:
|
while len(kb.responseTimes) < MIN_TIME_RESPONSES:
|
||||||
Connect.queryPage(content=True)
|
Connect.queryPage(content=True)
|
||||||
|
|
||||||
|
elif not kb.testMode:
|
||||||
|
warnMsg = "it is very important not to stress the network adapter's "
|
||||||
|
warnMsg += "bandwidth during usage of time-based payloads"
|
||||||
|
singleTimeWarnMessage(warnMsg)
|
||||||
|
|
||||||
|
if not kb.laggingChecked:
|
||||||
|
kb.laggingChecked = True
|
||||||
|
|
||||||
deviation = stdev(kb.responseTimes)
|
deviation = stdev(kb.responseTimes)
|
||||||
|
|
||||||
if deviation > WARN_TIME_STDEV:
|
if deviation > WARN_TIME_STDEV:
|
||||||
|
@ -797,13 +805,9 @@ class Connect(object):
|
||||||
warnMsg = "there is considerable lagging "
|
warnMsg = "there is considerable lagging "
|
||||||
warnMsg += "in connection response(s). Please use as high "
|
warnMsg += "in connection response(s). Please use as high "
|
||||||
warnMsg += "value for option '--time-sec' as possible (e.g. "
|
warnMsg += "value for option '--time-sec' as possible (e.g. "
|
||||||
warnMsg += "%d or more)" % (conf.timeSec * 2)
|
warnMsg += "10 or more)"
|
||||||
logger.critical(warnMsg)
|
logger.critical(warnMsg)
|
||||||
|
|
||||||
elif not kb.testMode:
|
|
||||||
warnMsg = "it is very important not to stress the network adapter's "
|
|
||||||
warnMsg += "bandwidth during usage of time-based payloads"
|
|
||||||
singleTimeWarnMessage(warnMsg)
|
|
||||||
|
|
||||||
if conf.safUrl and conf.saFreq > 0:
|
if conf.safUrl and conf.saFreq > 0:
|
||||||
kb.queryCounter += 1
|
kb.queryCounter += 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user