Skip to content

Commit a007cd3

Browse files
committed
1 parent 4c9e0b9 commit a007cd3

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

Diff for: lib/core/common.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -3659,11 +3659,15 @@ def safeSQLIdentificatorNaming(name, isTable=False):
36593659
elif Backend.getIdentifiedDbms() in (DBMS.ORACLE,):
36603660
retVal = "\"%s\"" % retVal.upper()
36613661
elif Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE):
3662-
parts = retVal.split('.', 1)
3663-
for i in xrange(len(parts)):
3664-
if ((parts[i] or " ")[0].isdigit() or not re.match(r"\A\w+\Z", parts[i], re.U)):
3665-
parts[i] = "[%s]" % parts[i]
3666-
retVal = '.'.join(parts)
3662+
if isTable:
3663+
parts = retVal.split('.', 1)
3664+
for i in xrange(len(parts)):
3665+
if parts[i] and (re.search(r"\A\d|[^\w]", parts[i], re.U) or parts[i].upper() in kb.keywords):
3666+
parts[i] = "[%s]" % parts[i]
3667+
retVal = '.'.join(parts)
3668+
else:
3669+
if re.search(r"\A\d|[^\w]", retVal, re.U) or retVal.upper() in kb.keywords:
3670+
retVal = "[%s]" % retVal
36673671

36683672
if _ and DEFAULT_MSSQL_SCHEMA not in retVal and '.' not in re.sub(r"\[[^]]+\]", "", retVal):
36693673
retVal = "%s.%s" % (DEFAULT_MSSQL_SCHEMA, retVal)

Diff for: lib/core/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.2.12.33"
22+
VERSION = "1.2.12.34"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

Diff for: txt/checksum.md5

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ c1bccc94522d3425a372dcd57f78418e extra/wafdetectify/wafdetectify.py
2929
1e5532ede194ac9c083891c2f02bca93 lib/controller/__init__.py
3030
e62309b22a59e60b270e62586f169441 lib/core/agent.py
3131
c347f085bd561adfa26d3a9512e5f3b9 lib/core/bigarray.py
32-
ae4bf844c42f9a36ebbe8444e89f7041 lib/core/common.py
32+
22eb6444f89ef013cd256c92771cff5a lib/core/common.py
3333
0d082da16c388b3445e656e0760fb582 lib/core/convert.py
3434
9f87391b6a3395f7f50830b391264f27 lib/core/data.py
3535
72016ea5c994a711a262fd64572a0fcd lib/core/datatype.py
@@ -49,7 +49,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4949
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
5050
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5151
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
52-
43eec1a3d017f1d440b89e9ecf3f2ff8 lib/core/settings.py
52+
16ba53ca22bb764b6cdee725ffe41618 lib/core/settings.py
5353
a971ce157d04de96ba6e710d3d38a9a8 lib/core/shell.py
5454
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5555
1581be48127a3a7a9fd703359b6e7567 lib/core/target.py

0 commit comments

Comments
 (0)