mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Minor patch for PostgreSQL UDF handling
This commit is contained in:
parent
a2bc690170
commit
9df1a3d640
|
@ -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.3.6.19"
|
VERSION = "1.3.6.20"
|
||||||
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)
|
||||||
|
|
|
@ -47,22 +47,10 @@ class Takeover(GenericTakeover):
|
||||||
|
|
||||||
banVer = kb.bannerFp["dbmsVersion"]
|
banVer = kb.bannerFp["dbmsVersion"]
|
||||||
|
|
||||||
if banVer >= "9.4":
|
if banVer >= "10":
|
||||||
majorVer = "9.4"
|
majorVer = banVer.split('.')[0]
|
||||||
elif banVer >= "9.3":
|
elif banVer >= "8.2" and '.' in banVer:
|
||||||
majorVer = "9.3"
|
majorVer = '.'.join(banVer.split('.')[:2])
|
||||||
elif banVer >= "9.2":
|
|
||||||
majorVer = "9.2"
|
|
||||||
elif banVer >= "9.1":
|
|
||||||
majorVer = "9.1"
|
|
||||||
elif banVer >= "9.0":
|
|
||||||
majorVer = "9.0"
|
|
||||||
elif banVer >= "8.4":
|
|
||||||
majorVer = "8.4"
|
|
||||||
elif banVer >= "8.3":
|
|
||||||
majorVer = "8.3"
|
|
||||||
elif banVer >= "8.2":
|
|
||||||
majorVer = "8.2"
|
|
||||||
else:
|
else:
|
||||||
errMsg = "unsupported feature on versions of PostgreSQL before 8.2"
|
errMsg = "unsupported feature on versions of PostgreSQL before 8.2"
|
||||||
raise SqlmapUnsupportedFeatureException(errMsg)
|
raise SqlmapUnsupportedFeatureException(errMsg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user