This commit is contained in:
Miroslav Stampar 2012-02-08 13:55:50 +00:00
parent 2662fe84f7
commit 1d4b10dbd1
2 changed files with 7 additions and 4 deletions

View File

@ -342,6 +342,7 @@ Anton Mogilin <azarmaster81@yahoo.com>
Anastasios Monachos <anastasiosm@gmail.com>
for providing some useful data
for suggesting a feature
for reporting a couple of bugs
Kirill Morozov <l0rda@l0rda.biz>
for reporting a bug

View File

@ -102,10 +102,12 @@ class Enumeration:
infoMsg = "fetching banner"
logger.info(infoMsg)
# Needed for IBM DB2 versions < 9
if Backend.isDbms(DBMS.DB2) and int(Backend.getVersion().split(".")[0]) < 9:
query = queries[Backend.getIdentifiedDbms()].banner.query2
if Backend.isDbms(DBMS.DB2):
rootQuery = queries[DBMS.DB2].banner
for query in (rootQuery.query, rootQuery.query2):
kb.data.banner = unArrayizeValue(inject.getValue(query, safeCharEncode=False))
if kb.data.banner:
break
else:
query = queries[Backend.getIdentifiedDbms()].banner.query
kb.data.banner = unArrayizeValue(inject.getValue(query, safeCharEncode=False))