diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index bd47f563e..547516be1 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -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: