File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from 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 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments