Skip to content

Commit 6aaf7d3

Browse files
committed
Fixes #5240
1 parent b8fa0ed commit 6aaf7d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.6.11.6"
23+
VERSION = "1.6.11.7"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def create_sock():
6969
sock = create_sock()
7070
if protocol not in _contexts:
7171
_contexts[protocol] = ssl.SSLContext(protocol)
72-
if self.cert_file and self.key_file:
72+
if getattr(self, "cert_file") and getattr(self, "key_file"):
7373
_contexts[protocol].load_cert_chain(certfile=self.cert_file, keyfile=self.key_file)
7474
try:
7575
# Reference(s): https://askubuntu.com/a/1263098
@@ -94,7 +94,7 @@ def create_sock():
9494
for protocol in _protocols:
9595
try:
9696
sock = create_sock()
97-
_ = ssl.wrap_socket(sock, keyfile=self.key_file, certfile=self.cert_file, ssl_version=protocol)
97+
_ = ssl.wrap_socket(sock, keyfile=getattr(self, "key_file"), certfile=getattr(self, "cert_file"), ssl_version=protocol)
9898
if _:
9999
success = True
100100
self.sock = _

0 commit comments

Comments
 (0)