File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 18
18
from thirdparty .six import unichr as _unichr
19
19
20
20
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21
- VERSION = "1.4.12.29 "
21
+ VERSION = "1.4.12.30 "
22
22
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
23
23
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
24
24
VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def create_sock():
61
61
62
62
# Reference(s): https://docs.python.org/2/library/ssl.html#ssl.SSLContext
63
63
# https://www.mnot.net/blog/2014/12/27/python_2_and_tls_sni
64
- if re .search (r"\A[\d.]+\Z" , self . host ) is None and kb .tlsSNI .get (self . host ) is not False and hasattr (ssl , "SSLContext" ):
64
+ if re .search (r"\A[\d.]+\Z" , conf . hostname ) is None and kb .tlsSNI .get (conf . hostname ) is not False and hasattr (ssl , "SSLContext" ):
65
65
for protocol in (_ for _ in _protocols if _ >= ssl .PROTOCOL_TLSv1 ):
66
66
try :
67
67
sock = create_sock ()
@@ -73,7 +73,7 @@ def create_sock():
73
73
_contexts [protocol ].set_ciphers ("DEFAULT@SECLEVEL=1" )
74
74
except ssl .SSLError :
75
75
pass
76
- result = _contexts [protocol ].wrap_socket (sock , do_handshake_on_connect = True , server_hostname = self . host )
76
+ result = _contexts [protocol ].wrap_socket (sock , do_handshake_on_connect = True , server_hostname = conf . hostname )
77
77
if result :
78
78
success = True
79
79
self .sock = result
@@ -86,8 +86,8 @@ def create_sock():
86
86
self ._tunnel_host = None
87
87
logger .debug ("SSL connection error occurred for '%s' ('%s')" % (_lut [protocol ], getSafeExString (ex )))
88
88
89
- if kb .tlsSNI .get (self . host ) is None :
90
- kb .tlsSNI [self . host ] = success
89
+ if kb .tlsSNI .get (conf . hostname ) is None :
90
+ kb .tlsSNI [conf . hostname ] = success
91
91
92
92
if not success :
93
93
for protocol in _protocols :
You can’t perform that action at this time.
0 commit comments