File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from 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 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_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 @@ -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
You can’t perform that action at this time.
0 commit comments