Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c5730ee

Browse files
committed
Update related to the #2677
1 parent a7bf4f4 commit c5730ee

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
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.1.15"
22+
VERSION = "1.2.1.16"
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)

plugins/dbms/oracle/connector.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ def connect(self):
4444
self.connector = cx_Oracle.connect(dsn=self.__dsn, user=self.user, password=self.password, mode=cx_Oracle.SYSDBA)
4545
logger.info("successfully connected as SYSDBA")
4646
except (cx_Oracle.OperationalError, cx_Oracle.DatabaseError, cx_Oracle.InterfaceError), ex:
47-
if "" in str(ex):
48-
msg = re.sub(r'DPI-\d+:\s+|: "[^"]+"', "", str(ex))
47+
if "Oracle Client library" in str(ex):
48+
msg = re.sub(r"DPI-\d+:\s+", "", str(ex))
49+
msg = re.sub(r': ("[^"]+")', r" (\g<1>)", msg)
50+
msg = re.sub(r". See (http[^ ]+)", r'. See "\g<1>"', msg)
4951
raise SqlmapConnectionException(msg)
5052

5153
try:

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ffa5f01f39b17c8d73423acca6cfe86a lib/core/readlineng.py
4646
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4747
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4848
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
49-
7bf6ba3c580b0a956d82189140784d17 lib/core/settings.py
49+
d623d7a3c0c977964f451ca20b0b15aa lib/core/settings.py
5050
d0adc28a38e43a787df4471f7f027413 lib/core/shell.py
5151
63491be462c515a1a3880c27c2acc4a2 lib/core/subprocessng.py
5252
505aaa61e1bba3c3d4567c3e667699e3 lib/core/target.py
@@ -173,7 +173,7 @@ d6836e2a6a308eb3536e2e7fc74fdc8b plugins/dbms/mysql/filesystem.py
173173
88b876f085fec2569a0697f4b69f41da plugins/dbms/mysql/__init__.py
174174
0e2adbee217f5b94dcc124d24b8dde99 plugins/dbms/mysql/syntax.py
175175
f30009816db6a0b41342301f0d657a01 plugins/dbms/mysql/takeover.py
176-
120637663f66cbb40f44a3a3bb2260dc plugins/dbms/oracle/connector.py
176+
999cb8d0d52820d30bdd4b3d658a765d plugins/dbms/oracle/connector.py
177177
e1ffee36fd18f33f34bb4bac4ae43f14 plugins/dbms/oracle/enumeration.py
178178
c326b0d8bed92be67888b0242f565ac8 plugins/dbms/oracle/filesystem.py
179179
e16cbf8abda91a906ca7bafb81d8866e plugins/dbms/oracle/fingerprint.py

0 commit comments

Comments
 (0)