Minor bug fixes

This commit is contained in:
Bernardo Damele 2011-01-30 21:01:57 +00:00
parent 2a0b03e5c6
commit 9fc0bedea8
2 changed files with 9 additions and 3 deletions

View File

@ -399,7 +399,7 @@ Bedirhan Urgun <bedirhanurgun@gmail.com>
benchmark project, OWASP SQLiBench, http://code.google.com/p/sqlibench
Kyprianos Vasilopoulos <kyprianos.vasilopoulos@gmail.com>
for reporting an unhandled connection exception
for reporting a couple of minor bugs
Carlos Gabriel Vergara <carlosgabrielvergara@gmail.com>
for suggesting couple of good features

View File

@ -267,7 +267,10 @@ class Enumeration:
if parsedUser:
user = parsedUser.groups()[0]
if user in retrievedUsers:
if isinstance(user, list):
user = user[0]
if not user or user in retrievedUsers:
continue
infoMsg = "fetching number of password hashes "
@ -536,7 +539,10 @@ class Enumeration:
if Backend.getIdentifiedDbms() == DBMS.MYSQL and kb.data.has_information_schema:
unescapedUser = unescaper.unescape(user, quote=False)
if user in retrievedUsers:
if isinstance(user, list):
user = user[0]
if not user or user in retrievedUsers:
continue
infoMsg = "fetching number of privileges "