mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-12-01 14:03:52 +03:00
revert of last commit because of the situation in detection phase where payload is made at the starting point (can't change conf.timeSec in that phase)
This commit is contained in:
parent
7abbd0c029
commit
fc90974940
|
@ -46,9 +46,8 @@ from lib.core.exception import sqlmapSyntaxException
|
||||||
from lib.core.settings import HTTP_SILENT_TIMEOUT
|
from lib.core.settings import HTTP_SILENT_TIMEOUT
|
||||||
from lib.core.settings import META_REFRESH_REGEX
|
from lib.core.settings import META_REFRESH_REGEX
|
||||||
from lib.core.settings import MIN_TIME_RESPONSES
|
from lib.core.settings import MIN_TIME_RESPONSES
|
||||||
from lib.core.settings import TIME_DEFAULT_DELAY
|
|
||||||
from lib.core.settings import URI_HTTP_HEADER
|
|
||||||
from lib.core.settings import WARN_TIME_STDEV
|
from lib.core.settings import WARN_TIME_STDEV
|
||||||
|
from lib.core.settings import URI_HTTP_HEADER
|
||||||
from lib.core.threads import getCurrentThreadData
|
from lib.core.threads import getCurrentThreadData
|
||||||
from lib.request.basic import decodePage
|
from lib.request.basic import decodePage
|
||||||
from lib.request.basic import forgeHeaders
|
from lib.request.basic import forgeHeaders
|
||||||
|
@ -504,20 +503,12 @@ class Connect:
|
||||||
Connect.queryPage(content=True)
|
Connect.queryPage(content=True)
|
||||||
|
|
||||||
if stdev(kb.responseTimes) > WARN_TIME_STDEV:
|
if stdev(kb.responseTimes) > WARN_TIME_STDEV:
|
||||||
warnMsg = "there is considerable lagging in connection "
|
|
||||||
warnMsg += "response(s). "
|
|
||||||
kb.adjustTimeDelay = False
|
kb.adjustTimeDelay = False
|
||||||
|
|
||||||
if conf.timeSec != TIME_DEFAULT_DELAY:
|
warnMsg = "there is considerable lagging in connection "
|
||||||
warnMsg += "please use as high value for --time-sec "
|
warnMsg += "response(s). please use as high value for "
|
||||||
warnMsg += "option as possible (e.g. 10)"
|
warnMsg += "--time-sec option as possible (e.g. 10)"
|
||||||
logger.critical(warnMsg)
|
logger.critical(warnMsg)
|
||||||
else:
|
|
||||||
conf.timeSec = 2 * TIME_DEFAULT_DELAY
|
|
||||||
|
|
||||||
warnMsg += "increasing default value for "
|
|
||||||
warnMsg += "--time-sec to %d" % conf.timeSec
|
|
||||||
logger.warn(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