同步操作将从 yeqingchen1/sqlmap 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/env python"""Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)See the file 'LICENSE' for copying permission"""from lib.core.data import conffrom lib.core.common import getSafeExStringfrom lib.core.exception import SqlmapConnectionExceptionfrom thirdparty.six.moves import http_client as _http_clientfrom thirdparty.six.moves import urllib as _urllibclass HTTPSPKIAuthHandler(_urllib.request.HTTPSHandler):def __init__(self, auth_file):_urllib.request.HTTPSHandler.__init__(self)self.auth_file = auth_filedef https_open(self, req):return self.do_open(self.getConnection, req)def getConnection(self, host, timeout=None):try:# Reference: https://docs.python.org/2/library/ssl.html#ssl.SSLContext.load_cert_chainreturn _http_client.HTTPSConnection(host, cert_file=self.auth_file, key_file=self.auth_file, timeout=conf.timeout)except IOError as ex:errMsg = "error occurred while using key "errMsg += "file '%s' ('%s')" % (self.auth_file, getSafeExString(ex))raise SqlmapConnectionException(errMsg)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。