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.3.6.19 "
21+ VERSION = "1.3.6.20 "
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 @@ -47,22 +47,10 @@ def udfSetLocalPaths(self):
4747
4848 banVer = kb .bannerFp ["dbmsVersion" ]
4949
50- if banVer >= "9.4" :
51- majorVer = "9.4"
52- elif banVer >= "9.3" :
53- majorVer = "9.3"
54- elif banVer >= "9.2" :
55- majorVer = "9.2"
56- elif banVer >= "9.1" :
57- majorVer = "9.1"
58- elif banVer >= "9.0" :
59- majorVer = "9.0"
60- elif banVer >= "8.4" :
61- majorVer = "8.4"
62- elif banVer >= "8.3" :
63- majorVer = "8.3"
64- elif banVer >= "8.2" :
65- majorVer = "8.2"
50+ if banVer >= "10" :
51+ majorVer = banVer .split ('.' )[0 ]
52+ elif banVer >= "8.2" and '.' in banVer :
53+ majorVer = '.' .join (banVer .split ('.' )[:2 ])
6654 else :
6755 errMsg = "unsupported feature on versions of PostgreSQL before 8.2"
6856 raise SqlmapUnsupportedFeatureException (errMsg )
You can’t perform that action at this time.
0 commit comments