now resume is available for time-based blinds too

This commit is contained in:
Miroslav Stampar 2010-12-08 12:49:26 +00:00
parent 537b619165
commit 64cc2588f1
2 changed files with 7 additions and 0 deletions

View File

@ -48,6 +48,8 @@ DUMP_STOP_MARKER = "__STOP__"
PAYLOAD_DELIMITER = "\x00"
MIN_TIME_RESPONSES = 10
# System variables
IS_WIN = subprocess.mswindows
# The name of the operating system dependent module imported. The following

View File

@ -29,6 +29,7 @@ from lib.core.data import logger
from lib.core.data import queries
from lib.core.enums import DBMS
from lib.core.exception import sqlmapNotVulnerableException
from lib.core.settings import MIN_TIME_RESPONSES
from lib.request.connect import Connect as Request
from lib.request.direct import direct
from lib.request.templates import getPageTemplate
@ -414,6 +415,10 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
if time and kb.timeTest and not value:
kb.technique = 5
while len(kb.responseTimes) < MIN_TIME_RESPONSES:
_ = Request.queryPage(content=True)
value = __goInferenceProxy(expression, fromUser, expected, batch, resumeValue, unpack, charsetType, firstChar, lastChar)
kb.unionNegative = oldParamNegative