This commit is contained in:
Miroslav Stampar
2018-04-09 11:34:50 +02:00
parent 4f2669a45a
commit 2c5f976993
4 changed files with 8 additions and 4 deletions

View File

@@ -43,6 +43,8 @@ class Connector(GenericConnector):
self.connector = pymssql.connect(host="%s:%d" % (self.hostname, self.port), user=self.user, password=self.password, database=self.db, login_timeout=conf.timeout, timeout=conf.timeout)
except (pymssql.Error, _mssql.MssqlDatabaseException), msg:
raise SqlmapConnectionException(msg)
except ValueError:
raise SqlmapConnectionException
self.initCursor()
self.printConnected()