这是一个 mitmproxy 二次封装版本
Project description
CustomizeProxy 是一个基于 mitmproxy 10.3.1 版本的二次封装版本。
概述
CustomizeProxy 是一个允许开发者拦截和修改本地计算机所有网络请求库,在windows平台可自动安装证书。
安装
使用 pip 安装 CustomizeProxy :
pip install CustomizeProxy
请注意,由于本项目是 mitmproxy 的封装版本,可能需要从源代码安装或使用特定的安装步骤。
使用示例
以下是一个简单的使用示例,展示如何使用:
from CustomizeProxy import exec_listening,addons,Optional,mitmproxy
class HTTPInterceptor:
def load(self, loader):
loader.add_option(
name="validate_inbound_headers",
typespec=Optional[bool],
default=False,
help="Validate inbound HTTP headers. (default: False)",
) # 不检查请求头格式
def request(self, flow: mitmproxy.http.HTTPFlow):
print("拦截:",flow.server_conn.address)
if __name__ == '__main__':
addons.append(HTTPInterceptor())
exec_listening()
贡献
我们欢迎任何形式的贡献,包括但不限于:
报告问题或错误。
提供功能请求或改进建议。
许可证
本项目采用 MIT 许可证。有关更多信息,请查看 LICENSE 文件。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
customizeproxy-0.0.1.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for CustomizeProxy-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19dfff830ca29ebaedd3a277fd7680549426ea347623a55b8c22f24931461ff5 |
|
MD5 | 83368a5039ebadc04044670847397ad8 |
|
BLAKE2b-256 | a4f3b3702398ffb1f2aa6f0866852365252c5da1d629f14aa9cd7d7d15078c81 |