mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
more update
This commit is contained in:
@@ -30,7 +30,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
|
||||
|
||||
@@ -61,10 +60,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[0])
|
||||
return retVal
|
||||
try:
|
||||
return self.cursor.fetchall()
|
||||
except sqlite3.OperationalError, msg:
|
||||
logger.log(8, msg[0])
|
||||
return None
|
||||
|
||||
def execute(self, query):
|
||||
logger.debug(query)
|
||||
|
||||
Reference in New Issue
Block a user