diff --git a/lib/request/connect.py b/lib/request/connect.py index 092d2683e..52cb085db 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -725,7 +725,7 @@ class Connect: if not response and removeReflection: page = removeReflectiveValues(page, payload) - kb.permissionFlag = re.search(r"permission denied", page or "", re.I) is not None + kb.permissionFlag = re.search(r"(command|permission) denied", page or "", re.I) is not None if content or response: return page, headers diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index b4c8c021e..30d1e06e8 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -1743,9 +1743,9 @@ class Enumeration: entriesCount = len(columnEntries) if len(kb.data.dumpedTable) == 0 or (entriesCount == 0 and kb.permissionFlag): - warnMsg = "unable to retrieve the entries of " + warnMsg = "unable to retrieve the entries " if conf.col: - warnMsg += "columns '%s' " % colString + warnMsg += "of columns '%s' " % colString warnMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl) warnMsg += "in database '%s'%s" % (unsafeSQLIdentificatorNaming(conf.db), " (permission denied)" if kb.permissionFlag else "") logger.warn(warnMsg)