mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-21 14:02:49 +03:00
minor refactoring
This commit is contained in:
parent
dcad5410fe
commit
3f8eadf4fe
|
@ -74,6 +74,9 @@ TIME_DELAY_CANDIDATES = 3
|
||||||
# default time delay in seconds
|
# default time delay in seconds
|
||||||
TIME_DEFAULT_DELAY = 5
|
TIME_DEFAULT_DELAY = 5
|
||||||
|
|
||||||
|
# HTTP timeout in silent mode
|
||||||
|
HTTP_SILENT_TIMEOUT = 3
|
||||||
|
|
||||||
# maximum number of techniques used in inject.py/getValue() per one value
|
# maximum number of techniques used in inject.py/getValue() per one value
|
||||||
MAX_TECHNIQUES_PER_VALUE = 2
|
MAX_TECHNIQUES_PER_VALUE = 2
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ from lib.core.enums import NULLCONNECTION
|
||||||
from lib.core.enums import PLACE
|
from lib.core.enums import PLACE
|
||||||
from lib.core.exception import sqlmapConnectionException
|
from lib.core.exception import sqlmapConnectionException
|
||||||
from lib.core.exception import sqlmapSyntaxException
|
from lib.core.exception import sqlmapSyntaxException
|
||||||
|
from lib.core.settings import HTTP_SILENT_TIMEOUT
|
||||||
from lib.core.settings import MIN_TIME_RESPONSES
|
from lib.core.settings import MIN_TIME_RESPONSES
|
||||||
from lib.core.settings import URI_HTTP_HEADER
|
from lib.core.settings import URI_HTTP_HEADER
|
||||||
from lib.core.threads import getCurrentThreadData
|
from lib.core.threads import getCurrentThreadData
|
||||||
|
@ -102,7 +103,7 @@ class Connect:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if silent:
|
if silent:
|
||||||
socket.setdefaulttimeout(3)
|
socket.setdefaulttimeout(HTTP_SILENT_TIMEOUT)
|
||||||
|
|
||||||
if direct:
|
if direct:
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user