mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
Minor patch
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.2.15"
|
||||
VERSION = "1.9.2.16"
|
||||
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)
|
||||
|
||||
@@ -120,7 +120,7 @@ def _comparison(page, headers, code, getRatioValue, pageLength):
|
||||
if isinstance(seqMatcher.a, six.binary_type) and isinstance(page, six.text_type):
|
||||
page = getBytes(page, kb.pageEncoding or DEFAULT_PAGE_ENCODING, "ignore")
|
||||
elif isinstance(seqMatcher.a, six.text_type) and isinstance(page, six.binary_type):
|
||||
seqMatcher.a = getBytes(seqMatcher.a, kb.pageEncoding or DEFAULT_PAGE_ENCODING, "ignore")
|
||||
seqMatcher.set_seq1(getBytes(seqMatcher.a, kb.pageEncoding or DEFAULT_PAGE_ENCODING, "ignore"))
|
||||
|
||||
if any(_ is None for _ in (page, seqMatcher.a)):
|
||||
return None
|
||||
@@ -146,12 +146,19 @@ def _comparison(page, headers, code, getRatioValue, pageLength):
|
||||
if seq1 is None or seq2 is None:
|
||||
return None
|
||||
|
||||
seq1 = seq1.replace(REFLECTED_VALUE_MARKER, "")
|
||||
seq2 = seq2.replace(REFLECTED_VALUE_MARKER, "")
|
||||
if isinstance(seq1, six.binary_type):
|
||||
seq1 = seq1.replace(REFLECTED_VALUE_MARKER.encode(), b"")
|
||||
elif isinstance(seq1, six.text_type):
|
||||
seq1 = seq1.replace(REFLECTED_VALUE_MARKER, "")
|
||||
|
||||
if isinstance(seq2, six.binary_type):
|
||||
seq2 = seq2.replace(REFLECTED_VALUE_MARKER.encode(), b"")
|
||||
elif isinstance(seq2, six.text_type):
|
||||
seq2 = seq2.replace(REFLECTED_VALUE_MARKER, "")
|
||||
|
||||
if kb.heavilyDynamic:
|
||||
seq1 = seq1.split("\n")
|
||||
seq2 = seq2.split("\n")
|
||||
seq1 = seq1.split("\n" if isinstance(seq1, six.text_type) else b"\n")
|
||||
seq2 = seq2.split("\n" if isinstance(seq2, six.text_type) else b"\n")
|
||||
|
||||
key = None
|
||||
else:
|
||||
|
||||
@@ -79,6 +79,7 @@ class HTTPSConnection(_http_client.HTTPSConnection):
|
||||
try:
|
||||
# Reference(s): https://askubuntu.com/a/1263098
|
||||
# https://askubuntu.com/a/1250807
|
||||
# https://git.zknt.org/mirror/bazarr/commit/7f05f932ffb84ba8b9e5630b2adc34dbd77e2b4a?style=split&whitespace=show-all&show-outdated=
|
||||
_contexts[protocol].set_ciphers("ALL@SECLEVEL=0")
|
||||
except (ssl.SSLError, AttributeError):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user