Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64cc258

Browse files
committed
now resume is available for time-based blinds too
1 parent 537b619 commit 64cc258

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

lib/core/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848

4949
PAYLOAD_DELIMITER = "\x00"
5050

51+
MIN_TIME_RESPONSES = 10
52+
5153
# System variables
5254
IS_WIN = subprocess.mswindows
5355
# The name of the operating system dependent module imported. The following

lib/request/inject.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from lib.core.data import queries
3030
from lib.core.enums import DBMS
3131
from lib.core.exception import sqlmapNotVulnerableException
32+
from lib.core.settings import MIN_TIME_RESPONSES
3233
from lib.request.connect import Connect as Request
3334
from lib.request.direct import direct
3435
from lib.request.templates import getPageTemplate
@@ -414,6 +415,10 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
414415

415416
if time and kb.timeTest and not value:
416417
kb.technique = 5
418+
419+
while len(kb.responseTimes) < MIN_TIME_RESPONSES:
420+
_ = Request.queryPage(content=True)
421+
417422
value = __goInferenceProxy(expression, fromUser, expected, batch, resumeValue, unpack, charsetType, firstChar, lastChar)
418423

419424
kb.unionNegative = oldParamNegative

0 commit comments

Comments
 (0)