x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/information-gathering/tools/autorecon.md
View on GitHub# AutoRecon
- **Category**: Information Gathering / Automated Enumeration
- **Risk Level**: 🟡 Medium
---
## 描述
一款多线程自动化网络侦察工具,可针对每个已发现的开放端口并行调度 nmap、gobuster、nikto、enum4linux 及众多其他工具。通过根据已发现服务自动运行所有适当的枚举工具,可节省初步踩点数小时的时间。广泛应用于 OSCP、PNPT 和 CTF 备考场景。
## 安装
```bash
sudo apt install autorecon
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `<targets>` | IP 地址、CIDR 范围或主机名 |
| `-t <file>` | 从文件读取目标列表 |
| `-o <dir>` | 输出目录(默认:`./results`) |
| `-p <ports>` | 逗号分隔的端口/端口范围列表 |
| `-m <n>` | 最大并发扫描数(默认:50) |
| `-mp <n>` | 每个目标的最大并发端口扫描数 |
| `-c <file>` | 配置文件路径 |
| `-g <file>` | 全局文件路径 |
| `--tags <tags>` | 用于确定包含哪些插件的标签 |
| `--exclude-tags <tags>` | 用于确定排除哪些插件的标签 |
| `--nmap <opts>` | 覆盖扫描中的 {nmap_extra} 变量 |
| `--nmap-append <opts>` | 追加到扫描中的 {nmap_extra} 变量 |
| `--proxychains` | 通过 proxychains 运行扫描 |
| `--single-target` | 一次仅扫描单个目标 |
| `--no-port-dirs` | 不创建端口专属目录 |
| `--only-scans-dir` | 仅创建 "scans" 目录用于存放结果 |
| `--timeout <m>` | 全局最大运行时间,单位为**分钟**(非秒) |
| `--target-timeout <m>` | 每个目标的最大运行时间,单位为**分钟**(非秒) |
| `--heartbeat <s>` | 扫描状态心跳间隔(秒) |
| `-v` | 详细输出 |
## 常用命令
```bash
# 扫描单个目标(最常用方式)
autorecon 192.168.1.10
# 扫描多个目标
autorecon 192.168.1.10 192.168.1.20 10.0.0.5
# 指定自定义输出目录扫描
autorecon 192.168.1.10 -o ./my_results
# 从目标文件读取并扫描
autorecon -t targets.txt
# 扫描 CIDR 范围
autorecon 192.168.1.0/24
# 仅运行安全插件(无激进扫描)
autorecon 192.168.1.10 --tags safe
# 限制并发扫描数以适应较慢网络
autorecon 192.168.1.10 -m 10
```
## 注意事项
1. AutoRecon 在 `results/<target>/` 下创建有组织的目录结构,包含独立的 `scans/`、`exploit/`、`loot/` 和 `report/` 子目录。
2. 优先查看 `scans/_quick_tcp_nmap.txt` 获取服务概览,然后逐个检查各端口的扫描输出文件。
3. 根据开放端口自动运行 gobuster、nikto、enum4linux、smbclient 及服务专属工具。
4. 对在线目标运行可能较慢;最适合在噪声可接受的实验室/CTF 环境中使用。
5. 需要多项依赖(nmap、gobuster、nikto 等)——在全新 Kali 上运行 `sudo apt install autorecon` 安装。
---
## 官方参考
- [AutoRecon (GitHub)](https://github.com/AutoRecon/AutoRecon)
- [Kali autorecon](https://www.kali.org/tools/autorecon/)
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 |