mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Fix for an Issue #485 (failing back to single-thread mode if over some bisection length)
This commit is contained in:
parent
d7c0805e7c
commit
be5ce760b6
2 changed files with 7 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ from lib.core.settings import INFERENCE_UNKNOWN_CHAR
|
|||
from lib.core.settings import INFERENCE_GREATER_CHAR
|
||||
from lib.core.settings import INFERENCE_EQUALS_CHAR
|
||||
from lib.core.settings import INFERENCE_NOT_EQUALS_CHAR
|
||||
from lib.core.settings import MAX_BISECTION_LENGTH
|
||||
from lib.core.settings import MAX_TIME_REVALIDATION_STEPS
|
||||
from lib.core.settings import PARTIAL_HEX_VALUE_MARKER
|
||||
from lib.core.settings import PARTIAL_VALUE_MARKER
|
||||
|
|
@ -135,6 +136,9 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
if length and (lastChar > 0 or firstChar > 0):
|
||||
length = min(length, lastChar or length) - firstChar
|
||||
|
||||
if length and length > MAX_BISECTION_LENGTH:
|
||||
length = None
|
||||
|
||||
showEta = conf.eta and isinstance(length, int)
|
||||
numThreads = min(conf.threads, length)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue