mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Minor just in case update
This commit is contained in:
parent
9568ee3c4d
commit
b2c8ba10cd
|
@ -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.5.1.37"
|
VERSION = "1.5.1.38"
|
||||||
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)
|
||||||
|
|
|
@ -30,7 +30,7 @@ class FingerprintHandler(ContentHandler):
|
||||||
def _feedInfo(self, key, value):
|
def _feedInfo(self, key, value):
|
||||||
value = sanitizeStr(value)
|
value = sanitizeStr(value)
|
||||||
|
|
||||||
if value in (None, "None"):
|
if value in (None, "None", ""):
|
||||||
return
|
return
|
||||||
|
|
||||||
if key == "dbmsVersion":
|
if key == "dbmsVersion":
|
||||||
|
@ -62,10 +62,10 @@ class FingerprintHandler(ContentHandler):
|
||||||
self._techVersion = sanitizeStr(attrs.get("tech_version"))
|
self._techVersion = sanitizeStr(attrs.get("tech_version"))
|
||||||
self._sp = sanitizeStr(attrs.get("sp"))
|
self._sp = sanitizeStr(attrs.get("sp"))
|
||||||
|
|
||||||
if self._dbmsVersion.isdigit():
|
if self._dbmsVersion and self._dbmsVersion.isdigit():
|
||||||
self._feedInfo("dbmsVersion", self._match.group(int(self._dbmsVersion)))
|
self._feedInfo("dbmsVersion", self._match.group(int(self._dbmsVersion)))
|
||||||
|
|
||||||
if self._techVersion.isdigit():
|
if self._techVersion and self._techVersion.isdigit():
|
||||||
self._feedInfo("technology", "%s %s" % (attrs.get("technology"), self._match.group(int(self._techVersion))))
|
self._feedInfo("technology", "%s %s" % (attrs.get("technology"), self._match.group(int(self._techVersion))))
|
||||||
else:
|
else:
|
||||||
self._feedInfo("technology", attrs.get("technology"))
|
self._feedInfo("technology", attrs.get("technology"))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user