Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1067d43

Browse files
committed
minor update
1 parent 2b12b18 commit 1067d43

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

plugins/generic/enumeration.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,10 +1319,17 @@ def __pivotDumpTable(self, table, colList, count=None, blind=True):
13191319
else:
13201320
count = inject.getValue(query, blind=False)
13211321

1322-
if not count or count == "0":
1323-
infoMsg = "table '%s' is empty" % table
1322+
if count == "0":
1323+
infoMsg = "table '%s' appears to be empty" % table
13241324
logger.info(infoMsg)
1325-
return entries
1325+
1326+
for column in colList:
1327+
lengths[column] = len(column)
1328+
entries[column] = []
1329+
1330+
return entries, lengths
1331+
elif not count:
1332+
return None
13261333

13271334
for column in colList:
13281335
lengths[column] = 0
@@ -1511,7 +1518,7 @@ def dumpTable(self):
15111518
query = rootQuery.inband.query % (colString, tbl)
15121519
elif Backend.getIdentifiedDbms() in (DBMS.SYBASE, DBMS.MSSQL):
15131520
# Partial inband and error
1514-
if not (isTechniqueAvailable(PAYLOAD.TECHNIQUE.UNION) and kb.injection.data[PAYLOAD.TECHNIQUE.UNION].where == PAYLOAD.WHERE.ORIGINAL):
1521+
if not (isTechniqueAvailable(PAYLOAD.TECHNIQUE.UNION) and kb.injection.data[PAYLOAD.TECHNIQUE.UNION].where == PAYLOAD.WHERE.ORIGINAL) and not any([conf.limitStart, conf.limitStop]):
15151522
table = "%s.%s" % (conf.db, tbl)
15161523

15171524
retVal = self.__pivotDumpTable(table, colList, blind=False)

0 commit comments

Comments
 (0)