mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 16:07:55 +03:00 
			
		
		
		
	Trivial refactoring
This commit is contained in:
		
							parent
							
								
									89aff21fb6
								
							
						
					
					
						commit
						e7dd7e2d48
					
				|  | @ -121,6 +121,7 @@ from lib.core.settings import MAX_NUMBER_OF_THREADS | ||||||
| from lib.core.settings import NULL | from lib.core.settings import NULL | ||||||
| from lib.core.settings import PARAMETER_SPLITTING_REGEX | from lib.core.settings import PARAMETER_SPLITTING_REGEX | ||||||
| from lib.core.settings import PRECONNECT_CANDIDATE_TIMEOUT | from lib.core.settings import PRECONNECT_CANDIDATE_TIMEOUT | ||||||
|  | from lib.core.settings import PROXY_ENVIRONMENT_VARIABLES | ||||||
| from lib.core.settings import SOCKET_PRE_CONNECT_QUEUE_SIZE | from lib.core.settings import SOCKET_PRE_CONNECT_QUEUE_SIZE | ||||||
| from lib.core.settings import SQLMAP_ENVIRONMENT_PREFIX | from lib.core.settings import SQLMAP_ENVIRONMENT_PREFIX | ||||||
| from lib.core.settings import SUPPORTED_DBMS | from lib.core.settings import SUPPORTED_DBMS | ||||||
|  | @ -1764,7 +1765,7 @@ def _cleanupOptions(): | ||||||
|         conf.binaryFields = conf.binaryFields.replace(" ", "") |         conf.binaryFields = conf.binaryFields.replace(" ", "") | ||||||
|         conf.binaryFields = re.split(PARAMETER_SPLITTING_REGEX, conf.binaryFields) |         conf.binaryFields = re.split(PARAMETER_SPLITTING_REGEX, conf.binaryFields) | ||||||
| 
 | 
 | ||||||
|     envProxy = max(os.environ.get(_, "") for _ in ("all_proxy", "ALL_PROXY", "http_proxy", "HTTP_PROXY", "https_proxy", "HTTPS_PROXY")) |     envProxy = max(os.environ.get(_, "") for _ in PROXY_ENVIRONMENT_VARIABLES) | ||||||
|     if re.search(r"\A(https?|socks[45])://.+:\d+\Z", envProxy) and conf.proxy is None: |     if re.search(r"\A(https?|socks[45])://.+:\d+\Z", envProxy) and conf.proxy is None: | ||||||
|         debugMsg = "using environment proxy '%s'" % envProxy |         debugMsg = "using environment proxy '%s'" % envProxy | ||||||
|         logger.debug(debugMsg) |         logger.debug(debugMsg) | ||||||
|  |  | ||||||
|  | @ -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.4.1.16" | VERSION = "1.4.1.17" | ||||||
| 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