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

Skip to content

Commit 4bf2006

Browse files
committed
Update related to the #2769
1 parent c5730ee commit 4bf2006

3 files changed

Lines changed: 12 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.16"
22+
VERSION = "1.2.1.17"
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)

lib/utils/sqlalchemy.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ def __init__(self, dialect=None):
4141

4242
def connect(self):
4343
if _sqlalchemy:
44+
import pdb
45+
pdb.set_trace()
4446
self.initConnection()
4547

4648
try:
@@ -54,7 +56,13 @@ def connect(self):
5456
if self.dialect:
5557
conf.direct = conf.direct.replace(conf.dbms, self.dialect, 1)
5658

57-
engine = _sqlalchemy.create_engine(conf.direct, connect_args={"check_same_thread": False} if self.dialect == "sqlite" else {})
59+
if self.dialect == "sqlite":
60+
engine = _sqlalchemy.create_engine(conf.direct, connect_args={"check_same_thread": False})
61+
elif self.dialect == "oracle":
62+
engine = _sqlalchemy.create_engine(conf.direct, connect_args={"allow_twophase": False})
63+
else:
64+
engine = _sqlalchemy.create_engine(conf.direct, connect_args={})
65+
5866
self.connector = engine.connect()
5967
except (TypeError, ValueError):
6068
if "_get_server_version_info" in traceback.format_exc():

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-
d623d7a3c0c977964f451ca20b0b15aa lib/core/settings.py
49+
50a0f84801ca7dcc40fd3112320d3fe2 lib/core/settings.py
5050
d0adc28a38e43a787df4471f7f027413 lib/core/shell.py
5151
63491be462c515a1a3880c27c2acc4a2 lib/core/subprocessng.py
5252
505aaa61e1bba3c3d4567c3e667699e3 lib/core/target.py
@@ -112,7 +112,7 @@ a6d6888e14a7c11f0884c8cc18489caa lib/utils/getch.py
112112
5d6d73d27833eef1b10b9215629533ff lib/utils/progress.py
113113
0ec5cec9d93d5ffd1eaeda6e942ecadf lib/utils/purge.py
114114
4a6886d3a0c7bf768df97738fa257de9 lib/utils/search.py
115-
3abe64e696ad75ad28cadf2695a58be8 lib/utils/sqlalchemy.py
115+
d0c473a44e2967d9ba2af688d34b9194 lib/utils/sqlalchemy.py
116116
dcc25183c6bd85b172c87cfcbc305ab6 lib/utils/timeout.py
117117
e426eae9ddf6a42bcb6b7355e2c2936f lib/utils/versioncheck.py
118118
1e9cf437451ff8147a372a002641b963 lib/utils/xrange.py

0 commit comments

Comments
 (0)