Skip to content

Commit 1d0c8a7

Browse files
committed
minor update
1 parent 6ed1b04 commit 1d0c8a7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/request/connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ def _randomizeParameter(paramString, randomParameter):
725725
if not response and removeReflection:
726726
page = removeReflectiveValues(page, payload)
727727

728-
kb.permissionFlag = re.search(r"permission denied", page or "", re.I) is not None
728+
kb.permissionFlag = re.search(r"(command|permission) denied", page or "", re.I) is not None
729729

730730
if content or response:
731731
return page, headers

plugins/generic/enumeration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,9 +1743,9 @@ def dumpTable(self, foundData=None):
17431743
entriesCount = len(columnEntries)
17441744

17451745
if len(kb.data.dumpedTable) == 0 or (entriesCount == 0 and kb.permissionFlag):
1746-
warnMsg = "unable to retrieve the entries of "
1746+
warnMsg = "unable to retrieve the entries "
17471747
if conf.col:
1748-
warnMsg += "columns '%s' " % colString
1748+
warnMsg += "of columns '%s' " % colString
17491749
warnMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl)
17501750
warnMsg += "in database '%s'%s" % (unsafeSQLIdentificatorNaming(conf.db), " (permission denied)" if kb.permissionFlag else "")
17511751
logger.warn(warnMsg)

0 commit comments

Comments
 (0)