mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
no need for conf.timeSec value as inference is always evaluated to False in DNS (large random values used for > ...)
This commit is contained in:
parent
89e90c3d84
commit
190ae4ca13
|
@ -20,8 +20,6 @@ from lib.core.common import extractRegexResult
|
|||
from lib.core.common import getSPQLSnippet
|
||||
from lib.core.common import hashDBRetrieve
|
||||
from lib.core.common import hashDBWrite
|
||||
from lib.core.common import popValue
|
||||
from lib.core.common import pushValue
|
||||
from lib.core.common import randomInt
|
||||
from lib.core.common import randomStr
|
||||
from lib.core.common import safecharencode
|
||||
|
@ -72,9 +70,6 @@ def dnsUse(payload, expression):
|
|||
expressionRequest = getSPQLSnippet(Backend.getIdentifiedDbms(), "dns_request", PREFIX=prefix, QUERY=expressionReplaced, SUFFIX=suffix, DOMAIN=conf.dName)
|
||||
expressionUnescaped = unescaper.unescape(expressionRequest)
|
||||
|
||||
pushValue(conf.timeSec)
|
||||
conf.timeSec = 0
|
||||
|
||||
if Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.PGSQL):
|
||||
comment = queries[Backend.getIdentifiedDbms()].comment.query
|
||||
query = agent.prefixQuery("; %s" % expressionUnescaped)
|
||||
|
@ -84,7 +79,6 @@ def dnsUse(payload, expression):
|
|||
forgedPayload = safeStringFormat(payload, (expressionUnescaped, randomInt(1), randomInt(3)))
|
||||
|
||||
Request.queryPage(forgedPayload, content=False, noteResponseTime=False, raise404=False)
|
||||
conf.timeSec = popValue()
|
||||
|
||||
_ = conf.dnsServer.pop(prefix, suffix)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user