mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-07 17:23:46 +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):
|
def isDBMSVersionAtLeast(version):
|
||||||
retVal = None
|
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:
|
if kb.dbmsVersion and kb.dbmsVersion[0] != "Unknown" and kb.dbmsVersion[0] != None:
|
||||||
retVal = kb.dbmsVersion[0] >= version
|
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
|
return retVal
|
||||||
|
|
Loading…
Reference in New Issue
Block a user