Skip to main content

这是一个 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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

CustomizeProxy-0.0.1-py2.py3-none-any.whl (5.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file customizeproxy-0.0.1.tar.gz.

File metadata

  • Download URL: customizeproxy-0.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for customizeproxy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0be5d65d67874a0ab97abb9d58dacd58557f0b7b6104edd8e4430952d7f8b70c
MD5 8b2017f7118a93ba5c33f941c9fd4e35
BLAKE2b-256 ebffc75f19ae10c4bd5bf0fed993357ce43b413eba84d1ea951d74aa3f66d7b5

See more details on using hashes here.

File details

Details for the file CustomizeProxy-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for CustomizeProxy-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 19dfff830ca29ebaedd3a277fd7680549426ea347623a55b8c22f24931461ff5
MD5 83368a5039ebadc04044670847397ad8
BLAKE2b-256 a4f3b3702398ffb1f2aa6f0866852365252c5da1d629f14aa9cd7d7d15078c81

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page