mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-10 09:49:06 +00:00
Further pleasing pylint gods
This commit is contained in:
@@ -1476,7 +1476,7 @@ def parseTargetDirect():
|
||||
|
||||
if dbmsName in (DBMS.MSSQL, DBMS.SYBASE):
|
||||
__import__("_mssql")
|
||||
import pymssql
|
||||
pymssql = __import__("pymssql")
|
||||
|
||||
if not hasattr(pymssql, "__version__") or pymssql.__version__ < "1.0.2":
|
||||
errMsg = "'%s' third-party library must be " % data[1]
|
||||
@@ -4316,9 +4316,9 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
|
||||
True
|
||||
"""
|
||||
|
||||
class _(six.StringIO):
|
||||
class _(six.StringIO, object):
|
||||
def __init__(self, content, url):
|
||||
six.StringIO.__init__(self, content)
|
||||
super(_, self).__init__(content)
|
||||
self._url = url
|
||||
|
||||
def geturl(self):
|
||||
|
||||
@@ -18,7 +18,7 @@ from lib.core.enums import OS
|
||||
from thirdparty.six import unichr as _unichr
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.3.6.3"
|
||||
VERSION = "1.3.6.4"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||
|
||||
@@ -50,14 +50,14 @@ class _ThreadData(threading.local):
|
||||
self.lastComparisonHeaders = None
|
||||
self.lastComparisonCode = None
|
||||
self.lastComparisonRatio = None
|
||||
self.lastErrorPage = None
|
||||
self.lastErrorPage = tuple()
|
||||
self.lastHTTPError = None
|
||||
self.lastRedirectMsg = None
|
||||
self.lastQueryDuration = 0
|
||||
self.lastPage = None
|
||||
self.lastRequestMsg = None
|
||||
self.lastRequestUID = 0
|
||||
self.lastRedirectURL = None
|
||||
self.lastRedirectURL = tuple()
|
||||
self.random = WichmannHill()
|
||||
self.resumed = False
|
||||
self.retriesCount = 0
|
||||
|
||||
Reference in New Issue
Block a user