x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/post-exploitation/tools/proxychains.md
View on GitHub# proxychains
- **Category**: Post-Exploitation / Tunneling and Proxying
- **Risk Level**: 🟢 Low
---
## 描述
强制任何 TCP 连接通过 SOCKS4/SOCKS5/HTTP 代理的工具,用于在内网渗透中通过跳板主机访问深层网络资源。配合 SSH 动态转发或 chisel 使用可实现内网穿透。
## 安装
```bash
sudo apt install proxychains4
```
## 参数说明
| 参数 | 说明 |
|---------|------|
| `strict_chain` | 按列表顺序使用代理(建议)|
| `dynamic_chain` | 自动跳过无法连接的代理 |
| `random_chain` | 随机选择代理链 |
| `proxy_dns` | DNS 请求也走代理(防止 DNS 泄露)|
| `[ProxyList]` | 代理列表(例如:socks5 127.0.0.1 1080)|
### 配置文件
```bash
# 配置文件位置(proxychains4)
cat /etc/proxychains4.conf
# 或用户级
cat ~/.proxychains/proxychains.conf
# 常用配置
[ProxyList]
socks5 127.0.0.1 1080 # chisel/ssh 动态转发端口
# socks4 127.0.0.1 9050 # Tor
```
## 常用命令
```bash
# 通过代理执行任意命令
proxychains nmap -sT 10.10.10.0/24
proxychains curl http://internal-server/
proxychains ssh root@192.168.100.50
proxychains evil-winrm -i 192.168.100.10 -u admin -p pass
# 静默模式(减少输出噪音)
proxychains -q nmap -sT 10.10.10.0/24
# 配合 SSH 动态代理
ssh -D 9050 user@pivot-host
# proxychains4.conf 中设置 socks5 127.0.0.1 9050
# 配合 chisel(R:socks 反向代理时服务端无需 --socks5)
# Kali: chisel server -p 8080 --reverse
# Target: chisel client <kali>:8080 R:socks
# 默认 SOCKS5 端口:1080
# proxychains4.conf: socks5 127.0.0.1 1080
```
## 注意事项
1. 只支持 TCP(UDP 会直连,不走代理——这是常见的泄露风险)
2. 在 proxychains4.conf 中启用 `proxy_dns`,让 DNS 请求走代理,防止 DNS 泄露
3. 不支持 nmap -sS(SYN 扫描),必须用 -sT(TCP 全连接)
4. 当前 Kali 中大多数安装的二进制名为 `proxychains4`;`proxychains` 也可能作为别名使用
---
## 官方参考
- [proxychains(GitHub)](https://github.com/haad/proxychains)
- [proxychains-ng - Kali 默认版本(GitHub)](https://github.com/rofl0r/proxychains-ng)
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 |