mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
bug fix
This commit is contained in:
parent
2662fe84f7
commit
1d4b10dbd1
|
@ -342,6 +342,7 @@ Anton Mogilin <azarmaster81@yahoo.com>
|
||||||
Anastasios Monachos <anastasiosm@gmail.com>
|
Anastasios Monachos <anastasiosm@gmail.com>
|
||||||
for providing some useful data
|
for providing some useful data
|
||||||
for suggesting a feature
|
for suggesting a feature
|
||||||
|
for reporting a couple of bugs
|
||||||
|
|
||||||
Kirill Morozov <l0rda@l0rda.biz>
|
Kirill Morozov <l0rda@l0rda.biz>
|
||||||
for reporting a bug
|
for reporting a bug
|
||||||
|
|
|
@ -102,10 +102,12 @@ class Enumeration:
|
||||||
infoMsg = "fetching banner"
|
infoMsg = "fetching banner"
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
# Needed for IBM DB2 versions < 9
|
if Backend.isDbms(DBMS.DB2):
|
||||||
if Backend.isDbms(DBMS.DB2) and int(Backend.getVersion().split(".")[0]) < 9:
|
rootQuery = queries[DBMS.DB2].banner
|
||||||
query = queries[Backend.getIdentifiedDbms()].banner.query2
|
for query in (rootQuery.query, rootQuery.query2):
|
||||||
kb.data.banner = unArrayizeValue(inject.getValue(query, safeCharEncode=False))
|
kb.data.banner = unArrayizeValue(inject.getValue(query, safeCharEncode=False))
|
||||||
|
if kb.data.banner:
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
query = queries[Backend.getIdentifiedDbms()].banner.query
|
query = queries[Backend.getIdentifiedDbms()].banner.query
|
||||||
kb.data.banner = unArrayizeValue(inject.getValue(query, safeCharEncode=False))
|
kb.data.banner = unArrayizeValue(inject.getValue(query, safeCharEncode=False))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user