mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 07:57:47 +03:00 
			
		
		
		
	Minor improvement (partial payload reflection like in syntax errors)
This commit is contained in:
		
							parent
							
								
									e1ab969fce
								
							
						
					
					
						commit
						c8c6a67cda
					
				|  | @ -3821,7 +3821,10 @@ def removeReflectiveValues(content, payload, suppressWarning=False): | |||
|             if regex != payload: | ||||
|                 if all(part.lower() in content.lower() for part in filterNone(regex.split(REFLECTED_REPLACEMENT_REGEX))[1:]):  # fast optimization check | ||||
|                     parts = regex.split(REFLECTED_REPLACEMENT_REGEX) | ||||
|                     retVal = content.replace(payload, REFLECTED_VALUE_MARKER)  # dummy approach | ||||
| 
 | ||||
|                     # Note: naive approach | ||||
|                     retVal = content.replace(payload, REFLECTED_VALUE_MARKER) | ||||
|                     retVal = content.replace(re.sub(r"\A\w+", "", payload), REFLECTED_VALUE_MARKER) | ||||
| 
 | ||||
|                     if len(parts) > REFLECTED_MAX_REGEX_PARTS:  # preventing CPU hogs | ||||
|                         regex = _("%s%s%s" % (REFLECTED_REPLACEMENT_REGEX.join(parts[:REFLECTED_MAX_REGEX_PARTS // 2]), REFLECTED_REPLACEMENT_REGEX, REFLECTED_REPLACEMENT_REGEX.join(parts[-REFLECTED_MAX_REGEX_PARTS // 2:]))) | ||||
|  |  | |||
|  | @ -18,7 +18,7 @@ from lib.core.enums import OS | |||
| from thirdparty.six import unichr as _unichr | ||||
| 
 | ||||
| # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | ||||
| VERSION = "1.3.5.115" | ||||
| VERSION = "1.3.5.116" | ||||
| TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" | ||||
| TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} | ||||
| VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user