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/naabu.md
View on GitHub# Naabu
- **Category**: Information Gathering / Port Scanning
- **Risk Level**: 🟡 Medium
---
## 描述
naabu 是 ProjectDiscovery 的高速、管道友好的端口扫描器。它面向大规模目标列表,支持主机发现、常用端口或自定义端口扫描、JSON 输出,并可直接串联 `httpx` 和 `nuclei`。当需要比 nmap 更快地完成初始 TCP 端口发现,同时保持输出便于 Agent 解析时使用。
## 安装
```bash
sudo apt update
sudo apt install naabu
# 上游 Go 安装
go install github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
naabu -h
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `-host <host>` | 要扫描端口的主机(逗号分隔) |
| `-list <file>` / `-l <file>` | 要扫描端口的主机列表(文件) |
| `-p <ports>` | 要扫描的端口,如 `80,443,8000-9000` |
| `-top-ports <n>` | 扫描的常用端口数(默认 100)[full,100,1000] |
| `-rate <n>` | 每秒发送的包数(默认 1000) |
| `-json` | 以 JSON lines 格式写入输出 |
| `-o <file>` | 写入输出文件 |
| `-silent` | 仅显示结果 |
| `-exclude-hosts <hosts>` / `-eh <hosts>` | 从扫描中排除主机(逗号分隔) |
| `-exclude-file <file>` / `-ef <file>` | 从文件中读取要排除的主机列表 |
| `-nmap-cli <cmd>` | 对发现结果运行的 nmap 命令(如 'nmap -sV') |
| `-sD` | 服务发现 |
| `-sV` | 服务版本检测 |
## 常用命令
```bash
# 扫描单个主机的常见端口
naabu -host 192.168.1.10 -top-ports 100
# 扫描 CIDR 并保存 host:port 输出
naabu -host 192.168.1.0/24 -top-ports 1000 -silent -o /tmp/naabu.txt
# 扫描自定义端口
naabu -list targets.txt -p 80,443,8080,8443,9000-9100 -silent
# JSON 输出,便于解析
naabu -list targets.txt -top-ports 100 -json -o /tmp/naabu.jsonl
# 将发现的 Web 端口串联到 httpx
naabu -list targets.txt -top-ports 1000 -silent | httpx -title -tech-detect
# 使用 nmap 对发现端口做服务识别
naabu -host 10.0.0.0/24 -top-ports 100 -nmap-cli "nmap -sV -oN /tmp/nmap-naabu.txt"
```
## 注意事项
1. naabu 用于快速发现端口,随后用 nmap 对发现端口做服务和版本识别。
2. 生产网络中应保守设置 `-rate`,避免丢包或产生过高噪声。
3. `-silent` 最适合 Unix 管道;`-json` 最适合 Agent 解析。
4. 在 Docker 中使用原始包模式时,使用带 `--network host --privileged` 创建的持久化容器。
5. 使用 CIDR 输入时必须严格遵守授权范围。
---
## 官方参考
- [naabu GitHub](https://github.com/projectdiscovery/naabu)
- [naabu Documentation](https://docs.projectdiscovery.io/tools/naabu/overview)
- [Kali naabu](https://www.kali.org/tools/naabu/)
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 |