mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-30 23:47:45 +03:00 
			
		
		
		
	Fixes #1336
This commit is contained in:
		
							parent
							
								
									c9d1c4d7b1
								
							
						
					
					
						commit
						023def3203
					
				|  | @ -212,7 +212,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None | ||||||
| 
 | 
 | ||||||
|             return not result |             return not result | ||||||
| 
 | 
 | ||||||
|         def getChar(idx, charTbl=None, continuousOrder=True, expand=charsetType is None, shiftTable=None): |         def getChar(idx, charTbl=None, continuousOrder=True, expand=charsetType is None, shiftTable=None, retried=None): | ||||||
|             """ |             """ | ||||||
|             continuousOrder means that distance between each two neighbour's |             continuousOrder means that distance between each two neighbour's | ||||||
|             numerical values is exactly 1 |             numerical values is exactly 1 | ||||||
|  | @ -310,7 +310,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None | ||||||
|                                         kb.originalTimeDelay = conf.timeSec |                                         kb.originalTimeDelay = conf.timeSec | ||||||
| 
 | 
 | ||||||
|                                     kb.timeValidCharsRun = 0 |                                     kb.timeValidCharsRun = 0 | ||||||
|                                     if (conf.timeSec - kb.originalTimeDelay) < MAX_TIME_REVALIDATION_STEPS: |                                     if retried < MAX_TIME_REVALIDATION_STEPS: | ||||||
|                                         errMsg = "invalid character detected. retrying.." |                                         errMsg = "invalid character detected. retrying.." | ||||||
|                                         logger.error(errMsg) |                                         logger.error(errMsg) | ||||||
| 
 | 
 | ||||||
|  | @ -324,7 +324,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None | ||||||
|                                             logger.debug(dbgMsg) |                                             logger.debug(dbgMsg) | ||||||
|                                             kb.adjustTimeDelay = ADJUST_TIME_DELAY.NO |                                             kb.adjustTimeDelay = ADJUST_TIME_DELAY.NO | ||||||
| 
 | 
 | ||||||
|                                         return getChar(idx, originalTbl, continuousOrder, expand, shiftTable) |                                         return getChar(idx, originalTbl, continuousOrder, expand, shiftTable, (retried or 0) + 1) | ||||||
|                                     else: |                                     else: | ||||||
|                                         errMsg = "unable to properly validate last character value ('%s').." % decodeIntToUnicode(retVal) |                                         errMsg = "unable to properly validate last character value ('%s').." % decodeIntToUnicode(retVal) | ||||||
|                                         logger.error(errMsg) |                                         logger.error(errMsg) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user