mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-20 07:00:25 +00:00
Fix for --timeless with --threads still asking for (unsafe) time-based threading
This commit is contained in:
parent
4f94d69783
commit
11d3ee00e6
2 changed files with 8 additions and 5 deletions
|
|
@ -19,7 +19,7 @@ from lib.core.enums import OS
|
|||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.10.11.57"
|
||||
VERSION = "1.10.11.58"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||
|
|
|
|||
|
|
@ -112,11 +112,14 @@ def _goInference(payload, expression, charsetType=None, firstChar=None, lastChar
|
|||
timeBasedCompare = (getTechnique() in (PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED))
|
||||
|
||||
if timeBasedCompare and conf.threads > 1 and kb.forceThreads is None:
|
||||
msg = "multi-threading is considered unsafe in "
|
||||
msg += "time-based data retrieval. Are you sure "
|
||||
msg += "of your choice (breaking warranty) [y/N] "
|
||||
if kb.get("timeless") is not None: # Note: (HTTP/2) timeless oracle is concurrency-safe (cf. valueParallelEligible())
|
||||
kb.forceThreads = True
|
||||
else:
|
||||
msg = "multi-threading is considered unsafe in "
|
||||
msg += "time-based data retrieval. Are you sure "
|
||||
msg += "of your choice (breaking warranty) [y/N] "
|
||||
|
||||
kb.forceThreads = readInput(msg, default='N', boolean=True)
|
||||
kb.forceThreads = readInput(msg, default='N', boolean=True)
|
||||
|
||||
if not (timeBasedCompare and kb.dnsTest):
|
||||
if (conf.eta or conf.threads > 1) and Backend.getIdentifiedDbms() and not re.search(r"(COUNT|LTRIM)\(", expression, re.I) and not (timeBasedCompare and not kb.forceThreads):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue