mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
first time firebird error-based query success
This commit is contained in:
parent
acc7d6d40c
commit
d2a3e8f44f
|
@ -1708,11 +1708,22 @@ def removeDynamicContent(page):
|
|||
|
||||
def isDBMSVersionAtLeast(version):
|
||||
retVal = None
|
||||
try:
|
||||
version = float(version)
|
||||
except ValueError, _:
|
||||
raise sqlmapSyntaxException, "parameter version (%s) must be a floating point number" % version
|
||||
|
||||
if version:
|
||||
if not isinstance(version, basestring):
|
||||
version = str(version)
|
||||
if kb.dbmsVersion and kb.dbmsVersion[0] != "Unknown" and kb.dbmsVersion[0] != None:
|
||||
retVal = kb.dbmsVersion[0] >= version
|
||||
if kb.dbmsVersion and kb.dbmsVersion[0] != "Unknown" and kb.dbmsVersion[0] != None:
|
||||
value = kb.dbmsVersion[0].replace(" ", "")
|
||||
if isinstance(value, basestring):
|
||||
if value.startswith(">="):
|
||||
value = float(value.replace(">=", ""))
|
||||
elif value.startswith(">"):
|
||||
value = float(value.replace(">", "")) + 0.01
|
||||
elif value.startswith("<="):
|
||||
value = float(value.replace("<=", ""))
|
||||
elif value.startswith(">"):
|
||||
value = float(value.replace("<", "")) - 0.01
|
||||
retVal = value >= version
|
||||
|
||||
return retVal
|
||||
|
|
Loading…
Reference in New Issue
Block a user