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

Skip to content

Commit 815d417

Browse files
committed
Fixes #4462
1 parent 3936a11 commit 815d417

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

lib/core/settings.py

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

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.4.12.7"
21+
VERSION = "1.4.12.8"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ def create_sock():
6767
sock = create_sock()
6868
if protocol not in _contexts:
6969
_contexts[protocol] = ssl.SSLContext(protocol)
70+
try:
71+
# Reference(s): https://askubuntu.com/a/1263098
72+
# https://askubuntu.com/a/1250807
73+
_contexts[protocol].set_ciphers("DEFAULT@SECLEVEL=1")
74+
except ssl.SSLError:
75+
pass
7076
result = _contexts[protocol].wrap_socket(sock, do_handshake_on_connect=True, server_hostname=self.host)
7177
if result:
7278
success = True

0 commit comments

Comments
 (0)