Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
ProxyBroker — 代理 [Finder | Checker | Server]. HTTP(S) & SOCKS :performing_arts: | Kitploit
工具/GitHubGitHub/constverum/proxybroker
隐私保护网络爬虫
GitHubconstverum/proxybroker

ProxyBroker

代理 [Finder | Checker | Server]. HTTP(S) & SOCKS 🎭

查看仓库网站
4.2k1.2k7年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

ProxyBroker

.. image:: https://img.shields.io/pypi/v/proxybroker.svg?style=flat-square :target: https://pypi.python.org/pypi/proxybroker/ .. image:: https://img.shields.io/travis/constverum/ProxyBroker.svg?style=flat-square :target: https://travis-ci.org/constverum/ProxyBroker .. image:: https://img.shields.io/pypi/wheel/proxybroker.svg?style=flat-square :target: https://pypi.python.org/pypi/proxybroker/ .. image:: https://img.shields.io/pypi/pyversions/proxybroker.svg?style=flat-square :target: https://pypi.python.org/pypi/proxybroker/ .. image:: https://img.shields.io/pypi/l/proxybroker.svg?style=flat-square :target: https://pypi.python.org/pypi/proxybroker/

ProxyBroker 是一个开源工具,它能异步地从多个来源查找公共代理,并同时对其进行检测。

.. image:: https://raw.githubusercontent.com/constverum/ProxyBroker/master/docs/source/_static/index_find_example.gif

特性

  • 从约 50 个来源找到超过 7000 个可用代理。
  • 支持协议: HTTP(S), SOCKS4/5。同时支持 CONNECT 方法连接端口 80 和 23 (SMTP)。
  • 代理可按类型、匿名级别、响应时间、所在国家以及 DNSBL 状态进行过滤。
  • 可作为代理服务器运行,将传入请求分发到外部代理。支持自动代理轮换。
  • 所有代理均经过检测,确保支持 Cookies 和 Referer(如需也支持 POST 请求)。
  • 自动移除重复代理。
  • 异步运行。

.. * 将找到的代理保存为自定义格式的文件。

依赖

  • Python 3.5 或更高版本
  • aiohttp <https://pypi.python.org/pypi/aiohttp>_
  • aiodns <https://pypi.python.org/pypi/aiodns>_
  • maxminddb <https://pypi.python.org/pypi/maxminddb>_

安装

安装来自 pypi 的最新稳定版本:

.. code-block:: bash

root@kitploit:~
$ pip install proxybroker

最新的开发版本可直接从 GitHub 安装:

.. code-block:: bash

root@kitploit:~
$ pip install -U git+https://github.com/constverum/ProxyBroker.git

用法

命令行示例

root@kitploit:~


查找
""""

查找并显示来自美国的 10 个高匿名 HTTP(S) 代理:

.. code-block:: bash

    $ proxybroker find --types HTTP HTTPS --lvl High --countries US --strict -l 10

.. image:: https://raw.githubusercontent.com/constverum/ProxyBroker/master/docs/source/_static/cli_find_example.gif


获取
""""

查找并将 10 个美国代理保存到文件(不经检测):

.. code-block:: bash

    $ proxybroker grab --countries US --limit 10 --outfile ./proxies.txt

.. image:: https://raw.githubusercontent.com/constverum/ProxyBroker/master/docs/source/_static/cli_grab_example.gif


服务
"""""

运行一个本地代理服务器,将传入请求分发到已找到的高匿名 HTTP(S) 代理池中:

.. code-block:: bash

    $ proxybroker serve --host 127.0.0.1 --port 8888 --types HTTP HTTPS --lvl High


.. image:: https://raw.githubusercontent.com/constverum/ProxyBroker/master/docs/source/_static/cli_serve_example.gif

| 运行 ``proxybroker --help`` 可查看可用选项的详细信息。
| 运行 ``proxybroker <command> --help`` 可查看某个命令的详细信息。


基础代码示例

查找并显示 10 个可用的 HTTP(S) 代理:

.. code-block:: python

root@kitploit:~
import asyncio
from proxybroker import Broker

async def show(proxies):
    while True:
        proxy = await proxies.get()
        if proxy is None: break
        print('Found proxy: %s' % proxy)

proxies = asyncio.Queue()
broker = Broker(proxies)
tasks = asyncio.gather(
    broker.find(types=['HTTP', 'HTTPS'], limit=10),
    show(proxies))

loop = asyncio.get_event_loop()
loop.run_until_complete(tasks)

更多示例 <https://proxybroker.readthedocs.io/en/latest/examples.html>_.

文档

https://proxybroker.readthedocs.io/

待办

  • 检测 ping、响应时间和数据传输速度
  • 检测网站访问(如 Google、Twitter 等),甚至自定义 URL
  • 提供正常运行时间信息
  • 返回数据的校验和
  • 支持代理认证
  • 查找用于级联代理的出站 IP
  • 允许指定不带端口的代理地址(尝试默认端口连接)

贡献

  • Fork 项目:https://github.com/constverum/ProxyBroker/fork
  • 创建功能分支:git checkout -b my-new-feature
  • 提交你的更改:git commit -am 'Add some feature'
  • 推送到分支:git push origin my-new-feature
  • 提交 Pull Request!

许可证

基于 Apache 许可证 2.0 版本授权

本产品包含 MaxMind 创建的 GeoLite2 数据,可从 http://www.maxmind.com <http://www.maxmind.com>_ 获取。

下载工具