CustomizeProxy
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 文件。
Metadata
Release files for CustomizeProxy 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| customizeproxy-0.0.1.tar.gz | 4.8 kB | Without provenance | Details for customizeproxy-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| CustomizeProxy-0.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for CustomizeProxy-0.0.1-py2.py3-none-any.whl |
Total release size: 10.6 kB
Release files / customizeproxy-0.0.1.tar.gz
| Download URL | customizeproxy-0.0.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0be5d65d67874a0ab97abb9d58dacd58557f0b7b6104edd8e4430952d7f8b70c
|
|
BLAKE2b-256 checksum How to use checksums |
ebffc75f19ae10c4bd5bf0fed993357ce43b413eba84d1ea951d74aa3f66d7b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Release files / CustomizeProxy-0.0.1-py2.py3-none-any.whl
| Download URL | CustomizeProxy-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
19dfff830ca29ebaedd3a277fd7680549426ea347623a55b8c22f24931461ff5
|
|
BLAKE2b-256 checksum How to use checksums |
a4f3b3702398ffb1f2aa6f0866852365252c5da1d629f14aa9cd7d7d15078c81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Security for CustomizeProxy 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.