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/netdiscover.md
View on GitHub# Netdiscover
- **Category**: Information Gathering / Internal Network Host Discovery
- **Risk Level**: 🟡 Medium
---
## 描述
基于 ARP 的主机发现工具,专为内网扫描设计。通过发送/监听 ARP 请求快速发现局域网中的活跃主机,比 nmap ping 扫描更快速、更可靠(ARP 不会被主机防火墙过滤)。支持被动模式(完全静默监听 ARP 流量)。适合内网渗透初期的主机枚举。
## 安装
```bash
sudo apt install netdiscover
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `-r RANGE` | 扫描指定范围而非自动扫描(如 192.168.6.0/24)|
| `-i IFACE` | 你的网络设备 |
| `-p` | 被动模式(只监听,不发送 ARP) |
| `-s TIME` | 每个 ARP 请求之间的休眠时间(毫秒) |
| `-n NODE` | 扫描时使用的源 IP 末位字节(范围 2–253) |
| `-c COUNT` | 每个 ARP 请求的发送次数(重试次数) |
| `-l FILE` | 扫描给定文件中包含的范围列表 |
| `-P` | 以可解析格式打印结果并在主动扫描后停止 |
| `-L` | 类似 -P 但在主动扫描完成后继续监听 |
| `-N` | 不打印头部(仅在启用 -P 或 -L 时有效) |
| `-S` | 启用请求间休眠时间抑制(极速模式) |
| `-f` | 启用快速模式扫描,推荐用于自动扫描 |
| `-d` | 忽略 home 配置文件(用于自动扫描和快速模式) |
| `-R` | 假定用户为 root / 已具备所需权限;跳过权限检查(适用于容器或受限环境) |
| `-m <file>` | 扫描已知 MAC 和主机名列表 |
| `-F <filter>` | 自定义 pcap 过滤表达式 |
## 常用命令
```bash
# 需要 root 权限
# 扫描指定子网
sudo netdiscover -r 192.168.1.0/24
# 指定网卡
sudo netdiscover -i eth0 -r 192.168.1.0/24
# 被动模式(静默监听 ARP 流量)
sudo netdiscover -p -i eth0
# 快速模式
sudo netdiscover -r 10.0.0.0/24 -f
# 指定发包间隔(降低检测概率)
sudo netdiscover -r 192.168.1.0/24 -s 100
```
## 注意事项
1. 需要 root 权限
2. 仅适用于同网段(二层)扫描,跨路由无效
3. 被动模式完全静默,适合隐蔽侦察
4. 配合 arp-scan 互补使用
5. netdiscover 没有 `-h` 选项。查看用法请运行 `netdiscover --help`——它会报 "Invalid extra argument" / 无效选项错误,但仍会打印完整的用法说明块。
6. 在容器或权限受限环境中,`-R` 可跳过 root/权限检查;搭配 `-d` 一并忽略 home 配置文件,以获得干净的自动扫描/快速模式运行。
---
## 官方参考
- [netdiscover GitHub](https://github.com/netdiscover-scanner/netdiscover)
- [Kali netdiscover](https://www.kali.org/tools/netdiscover/)
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 |