mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 16:07:55 +03:00 
			
		
		
		
	Fixes #3412
This commit is contained in:
		
							parent
							
								
									4c9e0b9f1e
								
							
						
					
					
						commit
						a007cd30e5
					
				|  | @ -3659,11 +3659,15 @@ def safeSQLIdentificatorNaming(name, isTable=False): | ||||||
|             elif Backend.getIdentifiedDbms() in (DBMS.ORACLE,): |             elif Backend.getIdentifiedDbms() in (DBMS.ORACLE,): | ||||||
|                 retVal = "\"%s\"" % retVal.upper() |                 retVal = "\"%s\"" % retVal.upper() | ||||||
|             elif Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE): |             elif Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE): | ||||||
|  |                 if isTable: | ||||||
|                     parts = retVal.split('.', 1) |                     parts = retVal.split('.', 1) | ||||||
|                     for i in xrange(len(parts)): |                     for i in xrange(len(parts)): | ||||||
|                     if ((parts[i] or " ")[0].isdigit() or not re.match(r"\A\w+\Z", parts[i], re.U)): |                         if parts[i] and (re.search(r"\A\d|[^\w]", parts[i], re.U) or parts[i].upper() in kb.keywords): | ||||||
|                             parts[i] = "[%s]" % parts[i] |                             parts[i] = "[%s]" % parts[i] | ||||||
|                     retVal = '.'.join(parts) |                     retVal = '.'.join(parts) | ||||||
|  |                 else: | ||||||
|  |                     if re.search(r"\A\d|[^\w]", retVal, re.U) or retVal.upper() in kb.keywords: | ||||||
|  |                         retVal = "[%s]" % retVal | ||||||
| 
 | 
 | ||||||
|         if _ and DEFAULT_MSSQL_SCHEMA not in retVal and '.' not in re.sub(r"\[[^]]+\]", "", retVal): |         if _ and DEFAULT_MSSQL_SCHEMA not in retVal and '.' not in re.sub(r"\[[^]]+\]", "", retVal): | ||||||
|             retVal = "%s.%s" % (DEFAULT_MSSQL_SCHEMA, retVal) |             retVal = "%s.%s" % (DEFAULT_MSSQL_SCHEMA, retVal) | ||||||
|  |  | ||||||
|  | @ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME | ||||||
| from lib.core.enums import OS | from lib.core.enums import OS | ||||||
| 
 | 
 | ||||||
| # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | ||||||
| VERSION = "1.2.12.33" | VERSION = "1.2.12.34" | ||||||
| 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) | ||||||
|  |  | ||||||
|  | @ -29,7 +29,7 @@ c1bccc94522d3425a372dcd57f78418e  extra/wafdetectify/wafdetectify.py | ||||||
| 1e5532ede194ac9c083891c2f02bca93  lib/controller/__init__.py | 1e5532ede194ac9c083891c2f02bca93  lib/controller/__init__.py | ||||||
| e62309b22a59e60b270e62586f169441  lib/core/agent.py | e62309b22a59e60b270e62586f169441  lib/core/agent.py | ||||||
| c347f085bd561adfa26d3a9512e5f3b9  lib/core/bigarray.py | c347f085bd561adfa26d3a9512e5f3b9  lib/core/bigarray.py | ||||||
| ae4bf844c42f9a36ebbe8444e89f7041  lib/core/common.py | 22eb6444f89ef013cd256c92771cff5a  lib/core/common.py | ||||||
| 0d082da16c388b3445e656e0760fb582  lib/core/convert.py | 0d082da16c388b3445e656e0760fb582  lib/core/convert.py | ||||||
| 9f87391b6a3395f7f50830b391264f27  lib/core/data.py | 9f87391b6a3395f7f50830b391264f27  lib/core/data.py | ||||||
| 72016ea5c994a711a262fd64572a0fcd  lib/core/datatype.py | 72016ea5c994a711a262fd64572a0fcd  lib/core/datatype.py | ||||||
|  | @ -49,7 +49,7 @@ c8c386d644d57c659d74542f5f57f632  lib/core/patch.py | ||||||
| 0c3eef46bdbf87e29a3f95f90240d192  lib/core/replication.py | 0c3eef46bdbf87e29a3f95f90240d192  lib/core/replication.py | ||||||
| a7db43859b61569b601b97f187dd31c5  lib/core/revision.py | a7db43859b61569b601b97f187dd31c5  lib/core/revision.py | ||||||
| fcb74fcc9577523524659ec49e2e964b  lib/core/session.py | fcb74fcc9577523524659ec49e2e964b  lib/core/session.py | ||||||
| 43eec1a3d017f1d440b89e9ecf3f2ff8  lib/core/settings.py | 16ba53ca22bb764b6cdee725ffe41618  lib/core/settings.py | ||||||
| a971ce157d04de96ba6e710d3d38a9a8  lib/core/shell.py | a971ce157d04de96ba6e710d3d38a9a8  lib/core/shell.py | ||||||
| a7edc9250d13af36ac0108f259859c19  lib/core/subprocessng.py | a7edc9250d13af36ac0108f259859c19  lib/core/subprocessng.py | ||||||
| 1581be48127a3a7a9fd703359b6e7567  lib/core/target.py | 1581be48127a3a7a9fd703359b6e7567  lib/core/target.py | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user