mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-30 23:47:45 +03:00 
			
		
		
		
	Fixes #3641
This commit is contained in:
		
							parent
							
								
									7a179889a3
								
							
						
					
					
						commit
						5767333c6b
					
				|  | @ -5,6 +5,7 @@ Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/) | ||||||
| See the file 'LICENSE' for copying permission | See the file 'LICENSE' for copying permission | ||||||
| """ | """ | ||||||
| 
 | 
 | ||||||
|  | import functools | ||||||
| import glob | import glob | ||||||
| import inspect | import inspect | ||||||
| import logging | import logging | ||||||
|  | @ -52,6 +53,7 @@ from lib.core.common import setOptimize | ||||||
| from lib.core.common import setPaths | from lib.core.common import setPaths | ||||||
| from lib.core.common import singleTimeWarnMessage | from lib.core.common import singleTimeWarnMessage | ||||||
| from lib.core.common import urldecode | from lib.core.common import urldecode | ||||||
|  | from lib.core.compat import cmp | ||||||
| from lib.core.compat import round | from lib.core.compat import round | ||||||
| from lib.core.compat import xrange | from lib.core.compat import xrange | ||||||
| from lib.core.convert import getUnicode | from lib.core.convert import getUnicode | ||||||
|  | @ -822,7 +824,7 @@ def _setTamperingFunctions(): | ||||||
|             logger.warning(warnMsg) |             logger.warning(warnMsg) | ||||||
| 
 | 
 | ||||||
|         if resolve_priorities and priorities: |         if resolve_priorities and priorities: | ||||||
|             priorities.sort(reverse=True) |             priorities.sort(key=functools.cmp_to_key(lambda a, b: cmp(a[0], b[0])), reverse=True) | ||||||
|             kb.tamperFunctions = [] |             kb.tamperFunctions = [] | ||||||
| 
 | 
 | ||||||
|             for _, function in priorities: |             for _, function in priorities: | ||||||
|  |  | ||||||
|  | @ -18,7 +18,7 @@ from lib.core.enums import OS | ||||||
| from thirdparty import six | from thirdparty import six | ||||||
| 
 | 
 | ||||||
| # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | ||||||
| VERSION = "1.3.5.59" | VERSION = "1.3.5.60" | ||||||
| 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) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user