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

Skip to content

Commit 79f0b3a

Browse files
committed
adding support for --start and --stop for __pivotDumpTable
1 parent b6fe5b1 commit 79f0b3a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

plugins/generic/enumeration.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,13 @@ def __pivotDumpTable(self, table, colList, count=None, blind=True):
14021402
else:
14031403
pivotValue = safechardecode(value)
14041404

1405+
if all([conf.limitStart, conf.limitStop]):
1406+
if (i + 1) < conf.limitStart:
1407+
break
1408+
elif (i + 1) > conf.limitStop:
1409+
breakRetrieval = True
1410+
break
1411+
14051412
lengths[column] = max(lengths[column], len(value) if value else 0)
14061413
entries[column].append(value)
14071414

@@ -1518,7 +1525,7 @@ def dumpTable(self):
15181525
query = rootQuery.inband.query % (colString, tbl)
15191526
elif Backend.getIdentifiedDbms() in (DBMS.SYBASE, DBMS.MSSQL):
15201527
# Partial inband and error
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]):
1528+
if not (isTechniqueAvailable(PAYLOAD.TECHNIQUE.UNION) and kb.injection.data[PAYLOAD.TECHNIQUE.UNION].where == PAYLOAD.WHERE.ORIGINAL):
15221529
table = "%s.%s" % (conf.db, tbl)
15231530

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

0 commit comments

Comments
 (0)