mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Couple of trivial patches
This commit is contained in:
parent
3ac1283900
commit
b6fbca05d5
4 changed files with 9 additions and 10 deletions
|
|
@ -90,6 +90,13 @@ def _goInference(payload, expression, charsetType=None, firstChar=None, lastChar
|
|||
|
||||
timeBasedCompare = (kb.technique 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] "
|
||||
|
||||
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