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/arp-scan.md
View on GitHub# arp-scan
- **Category**: Information Gathering / Internal Network Host Discovery
- **Risk Level**: 🟡 Medium
---
## 描述
快速 ARP 扫描工具,通过发送 ARP 请求包发现局域网主机并获取 MAC 地址,同时可识别设备厂商。速度比 netdiscover 更快,适合快速内网主机清点。
## 安装
```bash
sudo apt install arp-scan
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `-l` / `--localnet` | 从接口配置生成地址 |
| `-I IFACE` | 指定网络接口 |
| `--destaddr MAC` | 设置目标 MAC 地址 |
| `-r N` | 每个主机重试次数 |
| `-t MS` | 超时毫秒数 |
| `--bandwidth BW` | 设置出站带宽(默认:256000) |
| `--arpspa IP` | 设置源 IPv4 地址 |
## 常用命令
```bash
# 扫描本地网段(最常用)
sudo arp-scan -l
# 指定网卡
sudo arp-scan -I eth0 -l
# 扫描指定范围
sudo arp-scan 192.168.1.0/24
# 扫描特定 IP 列表
sudo arp-scan 192.168.1.1 192.168.1.2 192.168.1.100
# 提高速度
sudo arp-scan -l --bandwidth 1000k
# 显示厂商信息
sudo arp-scan -l # 默认会查询 MAC 厂商数据库
```
## 注意事项
1. arp-scan 需要 root 权限(`sudo`),因为它在链路层发送原始 ARP 数据包。
2. 当主机有多块网卡时,使用 `-I` 指定正确的接口;默认接口可能无法到达目标子网。
3. 增大 `--bandwidth`(如 `1000k` 或 `10m`)可加快大范围扫描,但过高的速率可能导致交换机过载或触发受管网络的端口安全机制。
4. MAC 厂商查询依赖本地 OUI 数据库(`/usr/share/arp-scan/ieee-oui.txt`);如厂商信息过时,可用 `sudo get-oui` 更新。
5. arp-scan 仅在同一广播域(二层网络)内有效;无法发现跨路由器的主机,跨子网发现请使用 nmap 或 masscan。
---
## 官方参考
- [arp-scan GitHub](https://github.com/royhills/arp-scan)
- [Kali arp-scan](https://www.kali.org/tools/arp-scan/)
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 |