File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919from 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 "
2323TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2424TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2525VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff 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 ():
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ ffa5f01f39b17c8d73423acca6cfe86a lib/core/readlineng.py
46460c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4747a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4848fcb74fcc9577523524659ec49e2e964b lib/core/session.py
49- d623d7a3c0c977964f451ca20b0b15aa lib/core/settings.py
49+ 50a0f84801ca7dcc40fd3112320d3fe2 lib/core/settings.py
5050d0adc28a38e43a787df4471f7f027413 lib/core/shell.py
515163491be462c515a1a3880c27c2acc4a2 lib/core/subprocessng.py
5252505aaa61e1bba3c3d4567c3e667699e3 lib/core/target.py
@@ -112,7 +112,7 @@ a6d6888e14a7c11f0884c8cc18489caa lib/utils/getch.py
1121125d6d73d27833eef1b10b9215629533ff lib/utils/progress.py
1131130ec5cec9d93d5ffd1eaeda6e942ecadf lib/utils/purge.py
1141144a6886d3a0c7bf768df97738fa257de9 lib/utils/search.py
115- 3abe64e696ad75ad28cadf2695a58be8 lib/utils/sqlalchemy.py
115+ d0c473a44e2967d9ba2af688d34b9194 lib/utils/sqlalchemy.py
116116dcc25183c6bd85b172c87cfcbc305ab6 lib/utils/timeout.py
117117e426eae9ddf6a42bcb6b7355e2c2936f lib/utils/versioncheck.py
1181181e9cf437451ff8147a372a002641b963 lib/utils/xrange.py
You can’t perform that action at this time.
0 commit comments