mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-15 19:09:02 +00:00
Minor improvement
This commit is contained in:
@@ -19,7 +19,7 @@ from lib.core.enums import OS
|
||||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.9.12.33"
|
||||
VERSION = "1.9.12.34"
|
||||
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)
|
||||
|
||||
@@ -52,6 +52,8 @@ class _ThreadData(threading.local):
|
||||
self.lastComparisonHeaders = None
|
||||
self.lastComparisonCode = None
|
||||
self.lastComparisonRatio = None
|
||||
self.lastPageTemplateCleaned = None
|
||||
self.lastPageTemplate = None
|
||||
self.lastErrorPage = tuple()
|
||||
self.lastHTTPError = None
|
||||
self.lastRedirectMsg = None
|
||||
|
||||
@@ -106,7 +106,11 @@ def _comparison(page, headers, code, getRatioValue, pageLength):
|
||||
# Dynamic content lines to be excluded before comparison
|
||||
if not kb.nullConnection:
|
||||
page = removeDynamicContent(page)
|
||||
seqMatcher.set_seq1(removeDynamicContent(kb.pageTemplate))
|
||||
if threadData.lastPageTemplate != kb.pageTemplate:
|
||||
threadData.lastPageTemplateCleaned = removeDynamicContent(kb.pageTemplate)
|
||||
threadData.lastPageTemplate = kb.pageTemplate
|
||||
|
||||
seqMatcher.set_seq1(threadData.lastPageTemplateCleaned)
|
||||
|
||||
if not pageLength:
|
||||
pageLength = len(page)
|
||||
|
||||
Reference in New Issue
Block a user