Skip to content

Commit 282eb7e

Browse files
committed
Minor update related to the sqlmapproject#4244
1 parent f28d82c commit 282eb7e

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.4.6.16"
21+
VERSION = "1.4.6.17"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

plugins/dbms/db2/fingerprint.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,20 @@ def checkDbms(self):
9797
logMsg = "confirming %s" % DBMS.DB2
9898
logger.info(logMsg)
9999

100-
version = self._versionCheck()
100+
result = inject.checkBooleanExpression("JULIAN_DAY(CURRENT DATE) IS NOT NULL")
101+
102+
if not result:
103+
warnMsg = "the back-end DBMS is not %s" % DBMS.DB2
104+
logger.warn(warnMsg)
101105

106+
return False
107+
108+
version = self._versionCheck()
102109
if version:
103110
Backend.setVersion(version)
104111
setDbms("%s %s" % (DBMS.DB2, Backend.getVersion()))
112+
else:
113+
setDbms(DBMS.DB2)
105114

106115
return True
107116
else:

0 commit comments

Comments
 (0)