MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / getVersionFromBanner

Method getVersionFromBanner

plugins/generic/misc.py:78–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76 return conf.tmpPath
77
78 def getVersionFromBanner(self):
79 if "dbmsVersion" in kb.bannerFp:
80 return
81
82 infoMsg = "detecting back-end DBMS version from its banner"
83 logger.info(infoMsg)
84
85 query = queries[Backend.getIdentifiedDbms()].banner.query
86
87 if conf.direct:
88 query = "SELECT %s" % query
89
90 kb.bannerFp["dbmsVersion"] = unArrayizeValue(inject.getValue(query)) or ""
91
92 match = re.search(r"\d[\d.-]*", kb.bannerFp["dbmsVersion"])
93 if match:
94 kb.bannerFp["dbmsVersion"] = match.group(0)
95
96 def delRemoteFile(self, filename):
97 if not filename:

Callers 2

udfSetLocalPathsMethod · 0.80
udfSetRemotePathMethod · 0.80

Calls 4

unArrayizeValueFunction · 0.90
infoMethod · 0.80
getIdentifiedDbmsMethod · 0.80
searchMethod · 0.45

Tested by

no test coverage detected