mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 18:07:46 +03:00 
			
		
		
		
	Bug fix to properly save the match ratio only if numeric (to avoid also tracebacks when match is based on --string or --regexp)
This commit is contained in:
		
							parent
							
								
									a14e4d9668
								
							
						
					
					
						commit
						8cec75656c
					
				| 
						 | 
					@ -61,13 +61,14 @@ def setRegexp():
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def setMatchRatio():
 | 
					def setMatchRatio():
 | 
				
			||||||
    condition = (
 | 
					    condition = (
 | 
				
			||||||
                  not kb.resumedQueries
 | 
					                  isinstance(conf.matchRatio, (int, float))
 | 
				
			||||||
                  or ( kb.resumedQueries.has_key(conf.url) and
 | 
					                  and ( not kb.resumedQueries
 | 
				
			||||||
                  not kb.resumedQueries[conf.url].has_key("Match ratio") )
 | 
					                  or ( kb.resumedQueries.has_key(conf.url) and not
 | 
				
			||||||
 | 
					                  kb.resumedQueries[conf.url].has_key("Match ratio") ) )
 | 
				
			||||||
                )
 | 
					                )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if condition:
 | 
					    if condition:
 | 
				
			||||||
        dataToSessionFile("[%s][None][None][Match ratio][%s]\n" % (conf.url, conf.matchRatio))
 | 
					        dataToSessionFile("[%s][%s][%s][Match ratio][%s]\n" % (conf.url, kb.injPlace, safeFormatString(conf.parameters[kb.injPlace]), conf.matchRatio))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def setInjection():
 | 
					def setInjection():
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user