mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
some update
This commit is contained in:
@@ -30,6 +30,7 @@ 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
|
||||
|
||||
@@ -59,11 +60,10 @@ class Connector(GenericConnector):
|
||||
self.connected()
|
||||
|
||||
def fetchall(self):
|
||||
try:
|
||||
return self.cursor.fetchall()
|
||||
except MySQLdb.ProgrammingError, msg:
|
||||
logger.log(8, msg[1])
|
||||
return None
|
||||
retVal = timeout(func=self.cursor.fetchall, duration=conf.timeout, default=None)
|
||||
if self.exceptionMsg:
|
||||
logger.log(8, self.exceptionMsg[1])
|
||||
return retVal
|
||||
|
||||
def execute(self, query):
|
||||
logger.debug(query)
|
||||
|
||||
Reference in New Issue
Block a user