x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/environment/state-files.md
View on GitHub# 状态文件
状态文件将关键发现持久化到 Agent 本地主机,使进度在上下文压缩后仍然存活。它们不在 Kali 环境内部。
## 状态目录
位置:`/tmp/kali-pentest-state/<target>/`
`<target>` 命名规则:
| 范围 | 命名 |
|------|------|
| 单主机 | IP 或主机名(如 `192.168.1.101`、`fileserver`) |
| CIDR 范围 | CIDR 并替换斜杠(如 `192.168.1.0_24`、`10.0.0.0_8`) |
| 多个离散主机 | 用户任务描述中的简短任务名(如 `corp-servers`、`lab-dmz`) |
## 状态摘要文件
| 文件 | 格式 | 何时写入 |
|------|------|----------|
| `live_hosts.txt` | 每行一个 IP | 主机发现扫描确认主机存活 |
| `open_ports.txt` | 每行 `<ip>:<port>` | 端口扫描完成或发现新端口 |
| `services.txt` | 每行 `<ip>:<port> <service> <version>` | 服务/版本检测完成 |
| `credentials.txt` | 每行 `<service> <host> <user>:<secret> <status>` | 从任何来源发现凭据(工具输出、配置文件、数据库转储、路径遍历、SNMP community string、确认的默认凭据) |
| `cred_matrix.txt` | 每行 `<user>:<secret> <host>:<service> <result>` | 对某个 host:service 测试凭据后——记录结果(成功/失败/锁定/错误) |
| `findings.txt` | 每行一条发现摘要 | 漏洞经交叉验证确认后——不是工具首次报告时 |
| `todo.txt` | 每行一项,返回条目以 `[playbook]` 为前缀 | 服务当前无法测试;切换 playbook(记录返回点);因约束延迟的测试 |
| `decisions.txt` | 每行 `[TYPE] <subject> — reason: <why>` | 做出影响后续阶段的跳过、替换、不适用或策略决策后 |
| `command_log.txt` | 每行 `[ISO8601] [tool] [command] -> [output_file or "inline"]` | 每次执行工具命令后 |
## 原始工具输出
原始工具输出保存在 Kali 环境内(SSH 服务器或 Docker 容器的 `/tmp/`):
| 数据 | 首选格式 |
|------|----------|
| 主机和端口扫描 | XML/grepable + JSON(机器可读,所有主流扫描器均支持) |
| HTTP 资产清单 | JSON、截图 |
| 漏洞 | JSONL 或结构化 HTML |
| Web 爬取 | URL 列表、HAR/流量文件 |
| 凭据和哈希 | 工具输出加来源上下文、范围和验证状态 |
| 证据 | 截图、原始请求/响应、证明命令、时间戳 |
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 |