Skip to content

Commit 6da2e49

Browse files
committed
Fixes #2261
1 parent 1e44c4d commit 6da2e49

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.0.11.0"
22+
VERSION = "1.0.11.2"
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
@@ -7,6 +7,7 @@
77

88
import distutils.version
99
import httplib
10+
import re
1011
import socket
1112
import urllib2
1213

@@ -47,7 +48,7 @@ def create_sock():
4748

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

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py
4545
5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py
4646
99a2b496b9d5b546b335653ca801153f lib/core/revision.py
4747
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
48-
c956b2508dd6a0b390b5ed3467f8009f lib/core/settings.py
48+
e4a80a2ccebb066cefb26a187696d4bc lib/core/settings.py
4949
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
5050
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
5151
c3ace7874a536d801f308cf1fd03df99 lib/core/target.py
@@ -70,7 +70,7 @@ c48285682a61d49982cb508351013cb4 lib/request/comparison.py
7070
9bff6fe291805380c6a74d0cda6684a5 lib/request/connect.py
7171
d4d52c1073c75a6eecd2ebb98b670b96 lib/request/direct.py
7272
4ae7f4570fb859045f0487cc0b055a8e lib/request/dns.py
73-
70ceefe39980611494d4f99afb96f652 lib/request/httpshandler.py
73+
58f63132eb56ad41ae6af4fe61933a2d lib/request/httpshandler.py
7474
cc9c82cfffd8ee9b25ba3af6284f057e lib/request/__init__.py
7575
62aff2a7bdd43f6e4d33385f57ec3e4c lib/request/inject.py
7676
3fc323d525beddd14cd4d4dca4934fa8 lib/request/methodrequest.py

0 commit comments

Comments
 (0)