Minor bug fix for --roles

This commit is contained in:
Bernardo Damele 2010-03-26 20:45:22 +00:00
parent 0aa8f7309b
commit eaa9dd07bc

View File

@ -623,7 +623,9 @@ class Enumeration:
def getRoles(self, query2=False):
warnMsg = "on %s the concept of roles does not " % kb.dbms
warnMsg += "exist. sqlmap will enumerate privileges instead"
self.getPrivileges(query2)
logger.warn(warnMsg)
return self.getPrivileges(query2)
def getDbs(self):
if kb.dbms == "MySQL" and not kb.data.has_information_schema: