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/nbtscan.md
View on GitHub# nbtscan
- **Category**: Information Gathering / NetBIOS Enumeration
- **Risk Level**: 🟢 Low
---
## 描述
nbtscan 用于从 Windows 和 Samba 主机枚举 NetBIOS 名称服务信息。它可快速将 IP 地址映射到 NetBIOS 名称、登录用户、MAC 地址和工作组/域名。在深入使用 `enum4linux-ng`、`smbmap` 或 `smbclient` 进行 SMB 枚举前,适合作为内网侦察的快速上下文收集工具。
## 安装
```bash
sudo apt update
sudo apt install nbtscan
nbtscan -h
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `<target>` | 单个 IP、主机名或 CIDR/范围 |
| `-r` | 使用本地 137 端口扫描(Win95 兼容性) |
| `-v` | 详细输出 |
| `-d` | 转储数据包(打印整个数据包内容) |
| `-e` | 以 `/etc/hosts` 格式输出 |
| `-l` | 以 lmhosts 格式输出(不能与 `-v`、`-s` 或 `-h` 组合使用) |
| `-b <bandwidth>` | 输出限速:减慢输出速度,使其占用不超过 `bandwidth` bps |
| `-q` | 抑制 banner 和错误消息 |
| `-s <separator>` | 脚本友好输出:省略列/记录头,用 `separator` 分隔字段 |
| `-h` | 以可读格式打印服务名称(须与 `-v` 同时使用) |
| `-m <n>` | 重传次数(默认 0) |
| `-f <file>` | 从文件中读取要扫描的 IP 地址(`-f -` 从 stdin 读取) |
| `-t <ms>` | 等待超时毫秒数(默认:1000) |
## 常用命令
```bash
# 扫描子网中的 NetBIOS 名称
nbtscan 192.168.1.0/24
# 详细扫描子网
nbtscan -v 192.168.1.0/24
# 从文件读取目标
nbtscan -f hosts.txt
# 保存结果供后续 SMB 枚举使用
nbtscan 10.0.0.0/24 | tee /tmp/nbtscan.txt
# 提取有 NetBIOS 响应的 IP
nbtscan 10.0.0.0/24 | awk '/^[0-9]/ {print $1}' > /tmp/smb-hosts.txt
```
## 注意事项
1. nbtscan 使用 UDP/137;即使 SMB/445 开放,防火墙也可能阻断该协议。
2. 将它作为较重 SMB 枚举前的快速命名和上下文收集步骤。
3. NetBIOS 名称可暴露 DC、文件服务器、工作站等主机角色。
4. 域用户、共享和策略枚举应继续使用 `enum4linux-ng` 和 `smbmap`。
---
## 官方参考
- [nbtscan Project](http://www.unixwiz.net/tools/nbtscan.html)
- [Kali nbtscan](https://www.kali.org/tools/nbtscan/)
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 |