mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-05-14 01:16:59 +00:00
Minor refactoring
This commit is contained in:
parent
6d49b5a403
commit
137687e120
3 changed files with 6 additions and 7 deletions
|
|
@ -12,7 +12,6 @@ except ImportError:
|
|||
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
|
||||
from lib.core.common import getSafeExString
|
||||
from lib.core.convert import getText
|
||||
|
|
@ -40,7 +39,7 @@ class Connector(GenericConnector):
|
|||
dsn = oracledb.makedsn(self.hostname, self.port, service_name=self.db)
|
||||
self.connector = oracledb.connect(user=self.user, password=self.password, dsn=dsn, mode=oracledb.AUTH_MODE_SYSDBA)
|
||||
logger.info("successfully connected as SYSDBA")
|
||||
except oracledb.DatabaseError as ex:
|
||||
except oracledb.DatabaseError:
|
||||
# Try again without SYSDBA
|
||||
try:
|
||||
self.connector = oracledb.connect(user=self.user, password=self.password, dsn=dsn)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue