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

Skip to content

Commit 36e62fe

Browse files
committed
Minor update
1 parent 2542b6d commit 36e62fe

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.2.8.12"
22+
VERSION = "1.2.8.13"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/pkihandler.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
import urllib2
1010

1111
from lib.core.data import conf
12+
from lib.core.common import getSafeExString
13+
from lib.core.exception import SqlmapConnectionException
1214

1315
class HTTPSPKIAuthHandler(urllib2.HTTPSHandler):
1416
def __init__(self, auth_file):
@@ -19,5 +21,10 @@ def https_open(self, req):
1921
return self.do_open(self.getConnection, req)
2022

2123
def getConnection(self, host, timeout=None):
22-
# Reference: https://docs.python.org/2/library/ssl.html#ssl.SSLContext.load_cert_chain
23-
return httplib.HTTPSConnection(host, cert_file=self.auth_file, key_file=self.auth_file, timeout=conf.timeout)
24+
try:
25+
# Reference: https://docs.python.org/2/library/ssl.html#ssl.SSLContext.load_cert_chain
26+
return httplib.HTTPSConnection(host, cert_file=self.auth_file, key_file=self.auth_file, timeout=conf.timeout)
27+
except IOError, ex:
28+
errMsg = "error occurred while using key "
29+
errMsg += "file '%s' ('%s')" % (self.auth_file, getSafeExString(ex))
30+
raise SqlmapConnectionException(errMsg)

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4848
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4949
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5050
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
51-
aaeca967ebd83967b78a9a56fb029696 lib/core/settings.py
51+
0cb27d1543a4cd5a1f466846965a2bf3 lib/core/settings.py
5252
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
5353
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5454
5b7ff6f49ff3af62f8c12f74b6d49dd2 lib/core/target.py
@@ -77,7 +77,7 @@ dd4598675027fae99f2e2475b05986da lib/request/direct.py
7777
1e5532ede194ac9c083891c2f02bca93 lib/request/__init__.py
7878
a5cbc19ee18bd4b848515eb3ea3291f0 lib/request/inject.py
7979
aaf956c1e9855836c3f372e29d481393 lib/request/methodrequest.py
80-
51eeaa8abf5ba62aaaade66d46ff8b00 lib/request/pkihandler.py
80+
83c7a13e38ad5eedb6bb13463a7a9e90 lib/request/pkihandler.py
8181
2c3774b72586985719035b195f144d7b lib/request/rangehandler.py
8282
3cd9d17fc52bb62db29e0e24fc4d8a97 lib/request/redirecthandler.py
8383
7f12d8f3b6665ed7053954bba70ff718 lib/request/templates.py

0 commit comments

Comments
 (0)