Minor bug fix

This commit is contained in:
Bernardo Damele 2010-10-31 13:46:08 +00:00
parent 65a0a8d285
commit eab331ebd7

View File

@ -81,8 +81,8 @@ class Enumeration:
kb.data.banner = inject.getValue(query)
bannerParser(kb.data.banner)
kb.bannerFp["dbmsVersion"] = kb.data.banner
kb.bannerFp["dbmsVersion"] = kb.bannerFp["dbmsVersion"].replace(",", "").replace("-", "").replace(" ", "")
if kb.data.banner:
kb.bannerFp["dbmsVersion"] = kb.data.banner.replace(",", "").replace("-", "").replace(" ", "")
if conf.os and conf.os == "windows":
kb.bannerFp["type"] = set([ "Windows" ])