File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55See the file 'doc/COPYING' for copying permission
66"""
77
8+ import distutils .version
89import httplib
910import socket
1011import urllib2
1314from lib .core .data import kb
1415from lib .core .data import logger
1516from lib .core .exception import SqlmapConnectionException
17+ from lib .core .settings import PYVERSION
1618
1719ssl = None
1820try :
@@ -84,7 +86,10 @@ def create_sock():
8486 logger .debug ("SSL connection error occurred ('%s')" % getSafeExString (ex ))
8587
8688 if not success :
87- raise SqlmapConnectionException ("can't establish SSL connection" )
89+ errMsg = "can't establish SSL connection"
90+ if distutils .version .LooseVersion (PYVERSION ) < distutils .version .LooseVersion ("2.7.10" ):
91+ errMsg += " (please retry with Python >= 2.7.10)"
92+ raise SqlmapConnectionException (errMsg )
8893
8994class HTTPSHandler (urllib2 .HTTPSHandler ):
9095 def https_open (self , req ):
You can’t perform that action at this time.
0 commit comments