This commit is contained in:
Miroslav Stampar 2020-12-07 12:00:10 +01:00
parent 92054b5d63
commit 760563dbd1
2 changed files with 2 additions and 2 deletions

View File

@ -4989,7 +4989,7 @@ def resetCookieJar(cookieJar):
cookieJar.load(cookieJar.filename, ignore_expires=True) cookieJar.load(cookieJar.filename, ignore_expires=True)
for cookie in cookieJar: for cookie in cookieJar:
if cookie.expires < time.time(): if getattr(cookie, "expires", MAX_INT) < time.time():
warnMsg = "cookie '%s' has expired" % cookie warnMsg = "cookie '%s' has expired" % cookie
singleTimeWarnMessage(warnMsg) singleTimeWarnMessage(warnMsg)

View File

@ -18,7 +18,7 @@ from lib.core.enums import OS
from thirdparty.six import unichr as _unichr from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>) # sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.4.12.13" VERSION = "1.4.12.14"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)