mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-26 05:31:04 +03:00 
			
		
		
		
	adding support for --start and --stop for __pivotDumpTable
This commit is contained in:
		
							parent
							
								
									b6fe5b12a4
								
							
						
					
					
						commit
						79f0b3a92a
					
				|  | @ -1402,6 +1402,13 @@ class Enumeration: | ||||||
|                         else: |                         else: | ||||||
|                             pivotValue = safechardecode(value) |                             pivotValue = safechardecode(value) | ||||||
| 
 | 
 | ||||||
|  |                     if all([conf.limitStart, conf.limitStop]): | ||||||
|  |                         if (i + 1) < conf.limitStart: | ||||||
|  |                             break | ||||||
|  |                         elif (i + 1) > conf.limitStop: | ||||||
|  |                             breakRetrieval = True | ||||||
|  |                             break | ||||||
|  | 
 | ||||||
|                     lengths[column] = max(lengths[column], len(value) if value else 0) |                     lengths[column] = max(lengths[column], len(value) if value else 0) | ||||||
|                     entries[column].append(value) |                     entries[column].append(value) | ||||||
| 
 | 
 | ||||||
|  | @ -1518,7 +1525,7 @@ class Enumeration: | ||||||
|                         query = rootQuery.inband.query % (colString, tbl) |                         query = rootQuery.inband.query % (colString, tbl) | ||||||
|                     elif Backend.getIdentifiedDbms() in (DBMS.SYBASE, DBMS.MSSQL): |                     elif Backend.getIdentifiedDbms() in (DBMS.SYBASE, DBMS.MSSQL): | ||||||
|                         # Partial inband and error |                         # Partial inband and error | ||||||
|                         if not (isTechniqueAvailable(PAYLOAD.TECHNIQUE.UNION) and kb.injection.data[PAYLOAD.TECHNIQUE.UNION].where == PAYLOAD.WHERE.ORIGINAL) and not any([conf.limitStart, conf.limitStop]): |                         if not (isTechniqueAvailable(PAYLOAD.TECHNIQUE.UNION) and kb.injection.data[PAYLOAD.TECHNIQUE.UNION].where == PAYLOAD.WHERE.ORIGINAL): | ||||||
|                             table = "%s.%s" % (conf.db, tbl) |                             table = "%s.%s" % (conf.db, tbl) | ||||||
| 
 | 
 | ||||||
|                             retVal = self.__pivotDumpTable(table, colList, blind=False) |                             retVal = self.__pivotDumpTable(table, colList, blind=False) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user