使用 RedSocks 和 DNScrypt 构建隐蔽渗透测试基础设施的脚本。
本仓库包含一组 Bash 脚本,用于协助设置透明代理基础设施。它通过 RedSocks 将流量路由到 SOCKS5 代理,并通过 DNScrypt 加密 DNS 查询。
原始来源: CPH-SEC/CPH-SEC.github.io
python3iptablesnano(或任意编辑器)curl安装依赖:
运行安装脚本来设置 dnscrypt-proxy 和 resolvconf。
sudo ./installdnscrypt.sh
编辑 RedSocks 配置: 配置你的远程 SOCKS5 代理信息。
sudo ./editREDconf.sh
要启动透明代理(这将重启 DNS 服务并应用 iptables 规则):
sudo ./startREDsocks.sh
此脚本作为主入口。它会持续运行。按 Ctrl+C 停止并清理。
路由流量: 手动应用 iptables 规则。
sudo ./iproute.sh
重置路由: 清除 iptables 规则并停止重定向。
sudo ./resetiproute.sh
重启 DNS: 重启 DNScrypt 和网络服务。
sudo ./restartDNScrypt.sh
检查 IP: 验证你的外部 IP 地址。
./myip.sh
获取代理:(需要 fetch-some-proxies 子模块)
sudo ./fetch.sh
本仓库已经过审计并现代化。
set -euo pipefail,以便及早捕获错误。