mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
more update
This commit is contained in:
@@ -31,7 +31,6 @@ except ImportError, _:
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import logger
|
||||
from lib.core.exception import sqlmapConnectionException
|
||||
from lib.utils.timeout import timeout
|
||||
|
||||
from plugins.generic.connector import Connector as GenericConnector
|
||||
|
||||
@@ -64,10 +63,11 @@ class Connector(GenericConnector):
|
||||
self.connected()
|
||||
|
||||
def fetchall(self):
|
||||
retVal = timeout(func=self.cursor.fetchall, duration=conf.timeout, default=None)
|
||||
if self.exceptionMsg:
|
||||
logger.log(8, self.exceptionMsg)
|
||||
return retVal
|
||||
try:
|
||||
return self.cursor.fetchall()
|
||||
except (pymssql.ProgrammingError, pymssql.OperationalError, _mssql.MssqlDatabaseException), msg:
|
||||
logger.log(8, msg)
|
||||
return None
|
||||
|
||||
def execute(self, query):
|
||||
logger.debug(query)
|
||||
|
||||
Reference in New Issue
Block a user