同步操作将从 yeqingchen1/sqlmap 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/env python"""Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)See the file 'LICENSE' for copying permission"""from thirdparty.six.moves import urllib as _urllibclass SmartHTTPBasicAuthHandler(_urllib.request.HTTPBasicAuthHandler):"""Reference: http://selenic.com/hg/rev/6c51a5056020Fix for a: http://bugs.python.org/issue8797"""def __init__(self, *args, **kwargs):_urllib.request.HTTPBasicAuthHandler.__init__(self, *args, **kwargs)self.retried_req = set()self.retried_count = 0def reset_retry_count(self):# Python 2.6.5 will call this on 401 or 407 errors and thus loop# forever. We disable reset_retry_count completely and reset in# http_error_auth_reqed instead.passdef http_error_auth_reqed(self, auth_header, host, req, headers):# Reset the retry counter once for each request.if hash(req) not in self.retried_req:self.retried_req.add(hash(req))self.retried_count = 0else:if self.retried_count > 5:raise _urllib.error.HTTPError(req.get_full_url(), 401, "basic auth failed", headers, None)else:self.retried_count += 1return _urllib.request.HTTPBasicAuthHandler.http_error_auth_reqed(self, auth_header, host, req, headers)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。