x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/cloud-native/tools/pacu.md
View on GitHub# Pacu
- **Category**: Cloud-Native / AWS Exploitation
- **Risk Level**: 🔴 High
---
## 描述
Rhino Security Labs 开发的 AWS 漏洞利用框架。交互式 CLI 工具,包含 IAM 枚举、权限提升、服务利用、持久化和数据窃取等模块,覆盖 AWS 服务(EC2、S3、IAM、Lambda、RDS 等)。会话数据本地存储,支持跨多次评估恢复。
## 安装
```bash
sudo apt install pacu
```
替代方式:
```bash
pip3 install pacu
```
## 参数说明
### 交互命令
| 参数 | 说明 |
|------|------|
| `import_keys <profile>` | 从 AWS CLI 配置文件导入密钥 |
| `set_keys` | 手动输入 AWS 访问密钥、秘密密钥和可选的会话令牌 |
| `swap_keys` | 在当前会话中切换已存储的密钥集 |
| `run <module>` | 执行指定模块 |
| `list` | 列出所有可用模块 |
| `search <term>` | 按关键词搜索模块 |
| `services` | 列出可用模块覆盖的 AWS 服务 |
| `data <service>` | 显示指定服务的已枚举数据 |
| `regions` | 列出或设置目标 AWS 区域 |
| `whoami` | 显示当前 IAM 身份和会话信息 |
| `help <module>` | 显示指定模块的详细帮助 |
| `sessions` | 列出、创建或切换会话 |
### 关键模块
| 参数 | 说明 |
|------|------|
| `iam__enum_users_roles_policies_groups` | 枚举 IAM 用户、角色、策略和组 |
| `iam__enum_permissions` | 枚举当前用户的权限 |
| `iam__privesc_scan` | 扫描权限提升路径 |
| `iam__backdoor_users_keys` | 在 IAM 用户上创建后门访问密钥 |
| `ec2__enum` | 枚举 EC2 实例、安全组和 VPC |
| `s3__download_bucket` | 枚举并下载 S3 存储桶中的文件 |
| `lambda__enum` | 枚举 Lambda 函数及其配置 |
| `ebs__enum_volumes_snapshots` | 枚举 EBS 卷和快照 |
| `rds__enum` | 枚举 RDS 实例和快照 |
## 常用命令
```bash
# 启动 pacu 并创建新会话
pacu
# 从 CLI 配置文件导入 AWS 密钥
import_keys my-profile
# 检查当前身份
whoami
# 枚举 IAM 用户、角色、策略和组
run iam__enum_users_roles_policies_groups
# 检查当前用户权限
run iam__enum_permissions
# 扫描权限提升路径
run iam__privesc_scan
# 枚举 EC2 实例
run ec2__enum
# 枚举并下载 S3 存储桶中的文件
run s3__download_bucket
# 枚举 Lambda 函数
run lambda__enum
# 查看已收集的服务数据
data iam
```
## 注意事项
1. 始终先运行 `whoami` 确认导入密钥的身份和权限,再运行枚举模块。
2. `iam__privesc_scan` 模块检查超过 20 种已知的权限提升路径——尽早运行以发现快速突破口。
3. 会话数据持久化存储在本地 SQLite 数据库中——使用 `sessions` 恢复之前的评估或切换目标。
4. 模块可能产生大量 API 活动——AWS CloudTrail 会记录所有 API 调用。需与评估范围协调并考虑速率限制。
5. 使用 `data <service>` 在运行其他模块前查看已收集的信息——避免重复的 API 调用。
---
## 官方参考
- [Pacu GitHub](https://github.com/RhinoSecurityLabs/pacu)
- [Kali pacu](https://www.kali.org/tools/pacu/)
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 |