Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b932845

Browse files
committed
Patch related to the #3139
1 parent cf4c263 commit b932845

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.2.6.13"
22+
VERSION = "1.2.6.14"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/httpshandler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import urllib2
1313

1414
from lib.core.common import getSafeExString
15+
from lib.core.data import conf
1516
from lib.core.data import kb
1617
from lib.core.data import logger
1718
from lib.core.exception import SqlmapConnectionException
@@ -48,7 +49,7 @@ def create_sock():
4849

4950
# Reference(s): https://docs.python.org/2/library/ssl.html#ssl.SSLContext
5051
# https://www.mnot.net/blog/2014/12/27/python_2_and_tls_sni
51-
if re.search(r"\A[\d.]+\Z", self.host) is None and kb.tlsSNI.get(self.host) is not False and hasattr(ssl, "SSLContext"):
52+
if re.search(r"\A[\d.]+\Z", self.host) is None and kb.tlsSNI.get(self.host) is not False and not any((conf.proxy, conf.tor)) and hasattr(ssl, "SSLContext"):
5253
for protocol in filter(lambda _: _ >= ssl.PROTOCOL_TLSv1, _protocols):
5354
try:
5455
sock = create_sock()

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ c9a56e58984420a5abb7a3f7aadc196d lib/core/optiondict.py
4747
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4848
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4949
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
50-
6f676678bbe92b0840e37eebbdd5c1e6 lib/core/settings.py
50+
9962d6781b4c6d216b2982d3c2e0aa6a lib/core/settings.py
5151
0dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
5252
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5353
6306284edcccc185b2df085438572b0d lib/core/target.py
@@ -72,7 +72,7 @@ c0cabedead14b8a23353b606672cff42 lib/request/comparison.py
7272
0ad9051e84e8fefe826f1a574b41b1b0 lib/request/connect.py
7373
dd4598675027fae99f2e2475b05986da lib/request/direct.py
7474
2044fce3f4ffa268fcfaaf63241b1e64 lib/request/dns.py
75-
eee965d781546d05f36cfd14af050913 lib/request/httpshandler.py
75+
98535d0efca5551e712fcc4b34a3f772 lib/request/httpshandler.py
7676
1e5532ede194ac9c083891c2f02bca93 lib/request/__init__.py
7777
c2fb1abbb7127ec6419bbf852c0a458d lib/request/inject.py
7878
aaf956c1e9855836c3f372e29d481393 lib/request/methodrequest.py

0 commit comments

Comments
 (0)