From 1067d43f14621695fdcab83243d759026150cca6 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 23 May 2011 19:16:29 +0000 Subject: [PATCH] minor update --- plugins/generic/enumeration.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index 086f19c1b..ea73cf2d1 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -1319,10 +1319,17 @@ class Enumeration: else: count = inject.getValue(query, blind=False) - if not count or count == "0": - infoMsg = "table '%s' is empty" % table + if count == "0": + infoMsg = "table '%s' appears to be empty" % table logger.info(infoMsg) - return entries + + for column in colList: + lengths[column] = len(column) + entries[column] = [] + + return entries, lengths + elif not count: + return None for column in colList: lengths[column] = 0 @@ -1511,7 +1518,7 @@ class Enumeration: query = rootQuery.inband.query % (colString, tbl) elif Backend.getIdentifiedDbms() in (DBMS.SYBASE, DBMS.MSSQL): # Partial inband and error - if not (isTechniqueAvailable(PAYLOAD.TECHNIQUE.UNION) and kb.injection.data[PAYLOAD.TECHNIQUE.UNION].where == PAYLOAD.WHERE.ORIGINAL): + if not (isTechniqueAvailable(PAYLOAD.TECHNIQUE.UNION) and kb.injection.data[PAYLOAD.TECHNIQUE.UNION].where == PAYLOAD.WHERE.ORIGINAL) and not any([conf.limitStart, conf.limitStop]): table = "%s.%s" % (conf.db, tbl) retVal = self.__pivotDumpTable(table, colList, blind=False)