Skip to main content

shadowProxy

使用方法

  • 查看帮助
 python3 shadowProxy.py -h
        .--.
       |o_o |    ------------------
       |:_/ |   < Author: Mr.Bingo >
      //   \ \   ------------------
     (|     | ) <    oddboy.cn     >
    /'\_   _/`\  ------------------
    \___)=(___/

usage: shadowProxy.py [-h] [--bind BIND] [--port PORT]
                      [--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
                      [--proxyListFile PROXYLISTFILE] [-t MULTIPLETIMES]

optional arguments:
  -h, --help            show this help message and exit
  --bind BIND           Default: 127.0.0.1
  --port PORT           Default: 8088
  --log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Default: WARNING
  --proxyListFile PROXYLISTFILE
                        代理列表文件
  -t MULTIPLETIMES      单一代理可被使用的次数,默认为2^31-1
  • 运行
python3 shadowProxy.py --proxyListFile proxylist.txt
        .--.
       |o_o |    ------------------
       |:_/ |   < Author: Mr.Bingo >
      //   \ \   ------------------
     (|     | ) <    oddboy.cn     >
    /'\_   _/`\  ------------------
    \___)=(___/

初始化代理池  本地IP :: 111.199.186.1
导入代理池:::	proxylist.txt
成功导入 55 个代理
Serving HTTP on 127.0.0.1 port 8088 (http://127.0.0.1:8088/) ...
  • 安装SSL证书(访问HTTPS需要)

【方式一】

Unix-Like系统下,直接运行setup_https_intercept.sh生成证书。

./setup_https_intercept.sh
Generating RSA private key, 2048 bit long modulus
........................................................+++
.........+++
e is 65537 (0x10001)
Generating RSA private key, 2048 bit long modulus
....................................................................+++
..+++
e is 65537 (0x10001)

【方式二】 *nix及windows主机均可使用。

$ python3 certs.py CREATECA
生成CA根证书:shadowProxy/certs/shadowproxyCA.crt
根证书私钥:shadowProxy/certs/shadowproxyCA.key
Proxy私钥:shadowProxy/certs/cert.key
生成测试站点证书:shadowProxy/certs/sites/testcert.crt

然后在代理到端口的浏览器中访问http://shadow.proxy/ 即可下载,导入系统/浏览器即可。

todo list

  • 运行过程中动态更新代理库

  • 明确打一枪换一炮模式与幽灵模式

  • 幽灵模式下动态评估代理质量,并进行优化选择

  • 完善日志记录

Metadata

Release files for shadowProxy-pro 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shadowProxy-pro 1.2.1
File Size Uploaded
shadowproxy_pro-1.2.1.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shadowProxy-pro 1.2.1
File Interpreter ABI Platform
shadowProxy_pro-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / shadowproxy_pro-1.2.1.tar.gz

Download URL shadowproxy_pro-1.2.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f995586529b91752c1ec5c7659d6762efef9d696eb599f46a146ab762d1b798d
BLAKE2b-256 checksum
How to use checksums
ce50a7b405924c51284d2807ff62390fd3840caba7bfd66c4cafe6a26ab51a50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.2

Release files / shadowProxy_pro-1.2.1-py3-none-any.whl

Download URL shadowProxy_pro-1.2.1-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
246a005afcb9be84eb5e798ef4c75123b26deb60da766e98d385bff26e51843b
BLAKE2b-256 checksum
How to use checksums
578aca7fad93192c1fc024501953f1c05a0526012e301c2f2b106f7b14558b78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page