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

Skip to content

Commit a7bf4f4

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

3 files changed

Lines changed: 9 additions & 4 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.14"
22+
VERSION = "1.2.1.15"
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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import logging
1414
import os
15+
import re
1516

1617
from lib.core.convert import utf8encode
1718
from lib.core.data import conf
@@ -42,7 +43,11 @@ def connect(self):
4243
try:
4344
self.connector = cx_Oracle.connect(dsn=self.__dsn, user=self.user, password=self.password, mode=cx_Oracle.SYSDBA)
4445
logger.info("successfully connected as SYSDBA")
45-
except (cx_Oracle.OperationalError, cx_Oracle.DatabaseError, cx_Oracle.InterfaceError):
46+
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))
49+
raise SqlmapConnectionException(msg)
50+
4651
try:
4752
self.connector = cx_Oracle.connect(dsn=self.__dsn, user=self.user, password=self.password)
4853
except (cx_Oracle.OperationalError, cx_Oracle.DatabaseError, cx_Oracle.InterfaceError), msg:

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-
6d8165a67243d0bc98f7bbc4d9b1ec36 lib/core/settings.py
49+
7bf6ba3c580b0a956d82189140784d17 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-
9a50b600d65d178b374d19775d1f95e4 plugins/dbms/oracle/connector.py
176+
120637663f66cbb40f44a3a3bb2260dc 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)