mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
Patch for an Issue Issue #416
This commit is contained in:
parent
084cfc797a
commit
2ada9e9b84
|
@ -101,6 +101,7 @@ from lib.core.settings import INJECT_HERE_MARK
|
||||||
from lib.core.settings import IS_WIN
|
from lib.core.settings import IS_WIN
|
||||||
from lib.core.settings import LOCALHOST
|
from lib.core.settings import LOCALHOST
|
||||||
from lib.core.settings import MAXDB_ALIASES
|
from lib.core.settings import MAXDB_ALIASES
|
||||||
|
from lib.core.settings import MAX_CONNECT_RETRIES
|
||||||
from lib.core.settings import MAX_NUMBER_OF_THREADS
|
from lib.core.settings import MAX_NUMBER_OF_THREADS
|
||||||
from lib.core.settings import MSSQL_ALIASES
|
from lib.core.settings import MSSQL_ALIASES
|
||||||
from lib.core.settings import MYSQL_ALIASES
|
from lib.core.settings import MYSQL_ALIASES
|
||||||
|
@ -1431,6 +1432,9 @@ def _cleanupOptions():
|
||||||
else:
|
else:
|
||||||
kb.adjustTimeDelay = ADJUST_TIME_DELAY.DISABLE
|
kb.adjustTimeDelay = ADJUST_TIME_DELAY.DISABLE
|
||||||
|
|
||||||
|
if conf.retries:
|
||||||
|
conf.retries = min(conf.retries, MAX_CONNECT_RETRIES)
|
||||||
|
|
||||||
if conf.code:
|
if conf.code:
|
||||||
conf.code = int(conf.code)
|
conf.code = int(conf.code)
|
||||||
|
|
||||||
|
|
|
@ -490,6 +490,9 @@ GENERIC_DOC_ROOT_DIRECTORY_NAMES = ("htdocs", "wwwroot", "www")
|
||||||
# Maximum length of a help part containing switch/option name(s)
|
# Maximum length of a help part containing switch/option name(s)
|
||||||
MAX_HELP_OPTION_LENGTH = 18
|
MAX_HELP_OPTION_LENGTH = 18
|
||||||
|
|
||||||
|
# Maximum number of connection retries (to prevent problems with recursion)
|
||||||
|
MAX_CONNECT_RETRIES = 100
|
||||||
|
|
||||||
# Strings for detecting formatting errors
|
# Strings for detecting formatting errors
|
||||||
FORMAT_EXCEPTION_STRINGS = ("Type mismatch", "Error converting", "Failed to convert", "System.FormatException", "java.lang.NumberFormatException")
|
FORMAT_EXCEPTION_STRINGS = ("Type mismatch", "Error converting", "Failed to convert", "System.FormatException", "java.lang.NumberFormatException")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user