minor update

This commit is contained in:
Miroslav Stampar 2012-03-12 15:19:02 +00:00
parent 6ed1b04bbe
commit 1d0c8a7f44
2 changed files with 3 additions and 3 deletions

View File

@ -725,7 +725,7 @@ class Connect:
if not response and removeReflection: if not response and removeReflection:
page = removeReflectiveValues(page, payload) 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: if content or response:
return page, headers return page, headers

View File

@ -1743,9 +1743,9 @@ class Enumeration:
entriesCount = len(columnEntries) entriesCount = len(columnEntries)
if len(kb.data.dumpedTable) == 0 or (entriesCount == 0 and kb.permissionFlag): 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: if conf.col:
warnMsg += "columns '%s' " % colString warnMsg += "of columns '%s' " % colString
warnMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl) warnMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl)
warnMsg += "in database '%s'%s" % (unsafeSQLIdentificatorNaming(conf.db), " (permission denied)" if kb.permissionFlag else "") warnMsg += "in database '%s'%s" % (unsafeSQLIdentificatorNaming(conf.db), " (permission denied)" if kb.permissionFlag else "")
logger.warn(warnMsg) logger.warn(warnMsg)