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

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

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

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

工具目录

分类

查看所有分类
Loading categories
TREVORproxy — 一个用Python编写的SOCKS代理,可随机化你的源IP地址。通过SSH隧道轮询你的恶意数据包,或者为它们提供数十亿个唯一源地址! | Kitploit
工具/GitHubGitHub/blacklanternsecurity/trevorproxy
WAF绕过渗透测试
GitHubblacklanternsecurity/trevorproxy

TREVORproxy

一个用Python编写的SOCKS代理,可随机化你的源IP地址。通过SSH隧道轮询你的恶意数据包,或者为它们提供数十亿个唯一源地址!

查看仓库
535774个月前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

TREVORproxy

一款用 Python 编写的 SOCKS 代理,能够随机化你的源 IP 地址。通过 SSH 隧道轮询你的恶意数据包,或赋予它们数十亿个独特的源地址!

请参阅随附的博客文章,其中包含有趣的吐槽和一些很酷的演示!

注意:如果你想防御此攻击,我们为你编写了一个优秀速率限制器 🩵。

作者 @thetechr0mancer

License Python Version

安装

root@kitploit:~
pip install git+https://github.com/blacklanternsecurity/trevorproxy

trevorproxy-diagram TREVORproxy IPv6 子网代理图示

ssh-proxy TREVORproxy SSH 代理演示

subnet-proxy TREVORproxy 子网代理演示

常见用例

  • WAF 绕过
  • 密码喷洒
  • Web 爬虫

工作原理

TREVORproxy 有两种操作模式:子网代理和 SSH 代理:

  • 子网代理模式利用 Linux 内核的 AnyIP 功能,将整个子网分配给网络接口,并为每个连接分配该子网内的随机源 IP 地址。
    • 例如,如果你的云服务商分配了一个 /64 的 IPv6 地址段,你可以从超过 一千八百亿亿(18,446,744,073,709,551,616)个唯一 IP 地址发送流量。
  • SSH 代理模式结合 iptables 和 SSH 的 SOCKS 代理功能(ssh -D),通过远程系统(云虚拟机等)轮询数据包。

注意:TREVORproxy 并非设计为 DoS 工具,因为它并不“伪造”数据包。它是一个功能完备的 SOCKS 代理,意味着它设计为接收返回流量。

示例 #1 - 从 IPv6 子网内的随机地址发送流量

  • 注意:在 subnet 模式下,trevorproxy 必须以 root 身份运行
  • 注意:这必须是合法的子网,例如你的云服务商分配给你的 IPv6 地址段。
root@kitploit:~
# 启动 TREVORproxy
$ sudo trevorproxy subnet -s dead:beef::0/64 -i eth0
[DEBUG] ip route add local dead:beef::0/64 dev eth0
[INFO] Listening on socks5://127.0.0.1:1080

# 测试 SOCKS 代理
# 注意每次请求的源 IP 地址不同
$ curl --proxy socks5://127.0.0.1:1080 -6 api64.ipify.org
dead:beef::74d0:b1be:3166:c934
$ curl --proxy socks5://127.0.0.1:1080 -6 api64.ipify.org
dead:beef::4927:1b4:8e5f:d44d
$ curl --proxy socks5://127.0.0.1:1080 -6 api64.ipify.org
dead:beef::2bb8:7b79:706e:cb7d
$ curl --proxy socks5://127.0.0.1:1080 -6 api64.ipify.org
dead:beef::7e13:abe3:dc24:5a00

示例 #2 - 通过 SSH 隧道发送流量

root@kitploit:~
# 配置 proxychains
$ cat /etc/proxychains.conf
...
socks5 127.0.0.1 1080
...

# 启动 TREVORproxy
$ trevorproxy ssh [email protected] [email protected]
[DEBUG] Opening SSH connection to [email protected]
[DEBUG] /usr/bin/ssh [email protected] -D 32482 -o StrictHostKeychecking=no
[DEBUG] Opening SSH connection to [email protected]
[DEBUG] /usr/bin/ssh [email protected] -D 32483 -o StrictHostKeychecking=no
[DEBUG] Waiting for /usr/bin/ssh [email protected] -D 32482 -o StrictHostKeychecking=no
[DEBUG] Waiting for /usr/bin/ssh [email protected] -D 32483 -o StrictHostKeychecking=no
[DEBUG] Creating iptables rules
[DEBUG] iptables -A OUTPUT -t nat -d 127.0.0.1 -o lo -p tcp --dport 1080 -j DNAT --to-destination 127.0.0.1:32482 -m statistic --mode nth --every 2 --packet 0
[DEBUG] iptables -A OUTPUT -t nat -d 127.0.0.1 -o lo -p tcp --dport 1080 -j DNAT --to-destination 127.0.0.1:32483
[INFO] Listening on socks5://127.0.0.1:1080

# 测试 SOCKS 代理
$ proxychains curl ifconfig.me
1.2.3.4
$ proxychains curl ifconfig.me
4.3.2.1
$ proxychains curl ifconfig.me
1.2.3.4
$ proxychains curl ifconfig.me
4.3.2.1

CLI 用法

root@kitploit:~
$ trevorproxy --help
usage: trevorproxy [-h] [-p PORT] [-l LISTEN_ADDRESS] [-q] [-v] {interface,ssh} ...

Round-robin requests through multiple SSH tunnels via a single SOCKS server

positional arguments:
  {interface,ssh}       proxy type
    interface           send traffic from local interface
    ssh                 send traffic through SSH hosts

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  Port for SOCKS server to listen on (default: 1080)
  -l LISTEN_ADDRESS, --listen-address LISTEN_ADDRESS
                        Listen address for SOCKS server (default: 127.0.0.1)
  -q, --quiet           Be quiet
  -v, -d, --verbose, --debug
                        Be verbose

CLI 用法 - 子网代理

root@kitploit:~
$ trevorproxy subnet --help
usage: trevorproxy subnet [-h] [-i INTERFACE] [-s SUBNET]

optional arguments:
  -h, --help            show this help message and exit
  -i INTERFACE, --interface INTERFACE
                        Interface to send packets on
  -s SUBNET, --subnet SUBNET
                        Subnet to send packets from

CLI 用法 - SSH 代理

root@kitploit:~
$ trevorproxy ssh --help
usage: trevorproxy ssh [-h] [-k KEY] [--base-port BASE_PORT] ssh_hosts [ssh_hosts ...]

positional arguments:
  ssh_hosts             Round-robin load-balance through these SSH hosts (user@host)

optional arguments:
  -h, --help            show this help message and exit
  -k KEY, --key KEY     Use this SSH key when connecting to proxy hosts
  --base-port BASE_PORT
                        Base listening port to use for SOCKS proxies (default: 32482)

trevor

#trevorforget

下载工具