Minor update

This commit is contained in:
Miroslav Stampar 2020-07-07 11:31:07 +02:00
parent a65e1faf99
commit 67f918f6ad
2 changed files with 3 additions and 4 deletions

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.7.3" VERSION = "1.4.7.4"
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)

View File

@ -464,9 +464,8 @@ def main():
finally: finally:
kb.threadContinue = False kb.threadContinue = False
_ = getDaysFromLastUpdate() if getDaysFromLastUpdate() > LAST_UPDATE_NAGGING_DAYS:
if _ > LAST_UPDATE_NAGGING_DAYS: warnMsg = "your sqlmap version is outdated"
warnMsg = "you haven't updated sqlmap for more than %d days!!!" % _
logger.warn(warnMsg) logger.warn(warnMsg)
if conf.get("showTime"): if conf.get("showTime"):