From 1d0c8a7f442d61a0dd7f9feb727a503f81d9f354 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 12 Mar 2012 15:19:02 +0000 Subject: [PATCH] minor update --- lib/request/connect.py | 2 +- plugins/generic/enumeration.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)