mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-06 13:25:48 +03:00
Code refactoring
This commit is contained in:
parent
349f885f08
commit
10fbeaed7b
|
@ -92,6 +92,7 @@ from lib.core.settings import DUMMY_SQL_INJECTION_CHARS
|
|||
from lib.core.settings import DUMMY_USER_INJECTION
|
||||
from lib.core.settings import DYNAMICITY_MARK_LENGTH
|
||||
from lib.core.settings import ERROR_PARSING_REGEXES
|
||||
from lib.core.settings import FORCE_COOKIE_EXPIRATION_TIME
|
||||
from lib.core.settings import FORM_SEARCH_REGEX
|
||||
from lib.core.settings import GENERIC_DOC_ROOT_DIRECTORY_NAMES
|
||||
from lib.core.settings import HASHDB_MILESTONE_VALUE
|
||||
|
@ -3510,7 +3511,7 @@ def resetCookieJar(cookieJar):
|
|||
for line in lines:
|
||||
_ = line.split()
|
||||
if len(_) == 7:
|
||||
_[4] = "9999999999" # The UNIX time that the variable will expire on
|
||||
_[4] = FORCE_COOKIE_EXPIRATION_TIME
|
||||
f.write("\n%s" % "\t".join(_))
|
||||
|
||||
cookieJar.filename = filename
|
||||
|
|
|
@ -433,6 +433,9 @@ DEFAULT_GET_POST_DELIMITER = '&'
|
|||
# Default delimiter in cookie values
|
||||
DEFAULT_COOKIE_DELIMITER = ';'
|
||||
|
||||
# Unix timestamp used for forcing cookie expiration when provided with --load-cookies
|
||||
FORCE_COOKIE_EXPIRATION_TIME = "9999999999"
|
||||
|
||||
# Skip unforced HashDB flush requests below the threshold number of cached items
|
||||
HASHDB_FLUSH_THRESHOLD = 32
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user