x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/exploitation/tools/proxytunnel.md
View on GitHub# Proxytunnel
- **Category**: Exploitation / Tunneling
- **Risk Level**: 🟡 Medium
---
## 描述
通过 HTTP 或 HTTPS CONNECT 代理建立 TCP 连接隧道。当授权环境允许出站代理访问,且需要通过该代理路径访问目标服务时使用。
## 安装
```bash
apt-get update && apt-get install -y proxytunnel
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `-p <proxy:port>` | 本地代理主机:端口组合 |
| `-r <proxy:port>` | 远程代理主机:端口组合(使用 2 个代理) |
| `-d <host:port>` | 目标主机和端口 |
| `-a <port>` | 以独立守护进程模式运行于指定端口或地址:端口 |
| `-i` | 从 inetd 运行 |
| `-e` | 在本地代理和目标之间 SSL 加密数据 |
| `-E` | 在客户端和本地代理之间 SSL 加密数据 |
| `-X` | 在本地和远程代理之间 SSL 加密数据 |
| `-P <user:pass>` | 代理认证凭据 |
| `-R <user:pass>` | 远程代理认证凭据 |
| `-F <file>` | 包含代理认证凭据的文件 |
| `-N` | 使用基于 NTLM 的认证 |
| `-t <domain>` | NTLM 域(默认:自动检测) |
| `-H <header>` | 添加发送到代理的额外 HTTP 头 |
| `-o <host>` | 发送自定义 Host Header/SNI |
| `-z` | 不验证服务器 SSL 证书 |
| `-C <path>` | 受信任 CA 证书或目录路径 |
| `-c <file>` | 客户端 SSL 证书(链) |
| `-k <file>` | 客户端 SSL 密钥 |
| `-4` | 强制 IPv4 连接到本地代理 |
| `-6` | 强制 IPv6 连接到本地代理 |
| `-v` | 详细输出 |
| `-q` | 静默模式,抑制消息 |
## 常用命令
```bash
# 通过 HTTP CONNECT proxy 创建本地 tunnel
proxytunnel -p <proxy>:8080 -d <target>:443 -a 8443
# 使用 proxy authentication
proxytunnel -p <proxy>:8080 -P <user>:<pass> -d <target>:22 -a 2222
# 通过 tunnel 连接
ssh -p 2222 <user>@127.0.0.1
```
## 注意事项
1. 确认代理使用已授权;代理日志往往会成为证据。
2. `proxytunnel` 是点对点工具。更广泛的横向移动使用 `chisel` 或 `ligolo-ng`。
3. 记录代理地址、目标、本地端口和认证上下文。
---
## 官方参考
- [proxytunnel GitHub](https://github.com/proxytunnel/proxytunnel)
- [Kali proxytunnel](https://www.kali.org/tools/proxytunnel/)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |