mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	Fixes #4591
This commit is contained in:
		
							parent
							
								
									0df2592622
								
							
						
					
					
						commit
						dd963a042d
					
				| 
						 | 
					@ -18,7 +18,7 @@ from lib.core.enums import OS
 | 
				
			||||||
from thirdparty.six import unichr as _unichr
 | 
					from thirdparty.six import unichr as _unichr
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
 | 
					# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
 | 
				
			||||||
VERSION = "1.5.3.1"
 | 
					VERSION = "1.5.3.2"
 | 
				
			||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
 | 
					TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
 | 
				
			||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
 | 
					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)
 | 
					VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -154,14 +154,18 @@ def _comparison(page, headers, code, getRatioValue, pageLength):
 | 
				
			||||||
            seqMatcher.set_seq1(seq1)
 | 
					            seqMatcher.set_seq1(seq1)
 | 
				
			||||||
            seqMatcher.set_seq2(seq2)
 | 
					            seqMatcher.set_seq2(seq2)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            key = (hash(seq1), hash(seq2))
 | 
					            try:
 | 
				
			||||||
 | 
					                key = (hash(seq1), hash(seq2))
 | 
				
			||||||
 | 
					            except:
 | 
				
			||||||
 | 
					                key = None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if key in kb.cache.comparison:
 | 
					            if key in kb.cache.comparison:
 | 
				
			||||||
                ratio = kb.cache.comparison[key]
 | 
					                ratio = kb.cache.comparison[key]
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                ratio = round(seqMatcher.quick_ratio() if not kb.heavilyDynamic else seqMatcher.ratio(), 3)
 | 
					                ratio = round(seqMatcher.quick_ratio() if not kb.heavilyDynamic else seqMatcher.ratio(), 3)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            kb.cache.comparison[key] = ratio
 | 
					            if key:
 | 
				
			||||||
 | 
					                kb.cache.comparison[key] = ratio
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # If the url is stable and we did not set yet the match ratio and the
 | 
					    # If the url is stable and we did not set yet the match ratio and the
 | 
				
			||||||
    # current injected value changes the url page content
 | 
					    # current injected value changes the url page content
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user