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

Skip to content

Commit 7b3a17b

Browse files
committed
Patch for #3068
1 parent 4a8f01c commit 7b3a17b

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

lib/core/common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,6 +1387,10 @@ def parseTargetDirect():
13871387
__import__("psycopg2")
13881388
elif dbmsName == DBMS.ORACLE:
13891389
__import__("cx_Oracle")
1390+
1391+
# Reference: http://itsiti.com/ora-28009-connection-sys-sysdba-sysoper
1392+
if (conf.dbmsUser or "").upper() == "SYS":
1393+
conf.direct = "%s?mode=SYSDBA" % conf.direct
13901394
elif dbmsName == DBMS.SQLITE:
13911395
__import__("sqlite3")
13921396
elif dbmsName == DBMS.ACCESS:

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.5.9"
22+
VERSION = "1.2.5.10"
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def connect(self):
5757
if self.dialect == "sqlite":
5858
engine = _sqlalchemy.create_engine(conf.direct, connect_args={"check_same_thread": False})
5959
elif self.dialect == "oracle":
60-
engine = _sqlalchemy.create_engine(conf.direct, connect_args={"allow_twophase": False})
60+
engine = _sqlalchemy.create_engine(conf.direct)
6161
else:
6262
engine = _sqlalchemy.create_engine(conf.direct, connect_args={})
6363

txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ c7443613a0a2505b1faec931cee2a6ef lib/controller/handler.py
2828
1e5532ede194ac9c083891c2f02bca93 lib/controller/__init__.py
2929
b1990c7805943f0c973a853bba981d96 lib/core/agent.py
3030
fd8f239e259afaf5f24bcf34a0ad187f lib/core/bigarray.py
31-
2e81c8be79eb98227affcfd7bd25c702 lib/core/common.py
31+
3418e7b81884c1908dca632c590495ab lib/core/common.py
3232
0d082da16c388b3445e656e0760fb582 lib/core/convert.py
3333
9f87391b6a3395f7f50830b391264f27 lib/core/data.py
3434
72016ea5c994a711a262fd64572a0fcd lib/core/datatype.py
@@ -47,7 +47,7 @@ c9a56e58984420a5abb7a3f7aadc196d lib/core/optiondict.py
4747
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4848
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4949
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
50-
0134616235193faba40a094cf7a4ba09 lib/core/settings.py
50+
28c2fa86e020a801bf0a92974113b0ef lib/core/settings.py
5151
0dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
5252
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5353
6306284edcccc185b2df085438572b0d lib/core/target.py
@@ -113,7 +113,7 @@ cc1cfe36057f1d9bbdcba1bcc03359f9 lib/utils/hash.py
113113
5cb78b0e60fd7fd84502d62cf85d2064 lib/utils/progress.py
114114
0ec5cec9d93d5ffd1eaeda6e942ecadf lib/utils/purge.py
115115
2c5a655c8e94cbe2664ee497752ac1f2 lib/utils/search.py
116-
236a8d9e596602b53f8e0aa09c30c0ef lib/utils/sqlalchemy.py
116+
571884f530796534f03c49cf3f380a4c lib/utils/sqlalchemy.py
117117
dcc25183c6bd85b172c87cfcbc305ab6 lib/utils/timeout.py
118118
3d230e342a6c8d60ac7c68c556fbba9b lib/utils/versioncheck.py
119119
7348ee704485651737ddbe3538271be9 lib/utils/xrange.py

0 commit comments

Comments
 (0)