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/fping.md
View on GitHub# fping
- **Category**: Information Gathering / Host Discovery
- **Risk Level**: 🟢 Low
---
## 描述
快速 ICMP ping 工具,可同时探测多个目标——不同于标准 `ping` 需要等待每个目标响应后再继续,它以轮询方式发送探测包。适合快速检测大型 IP 段中哪些主机存活。支持从文件或 stdin 读取目标,便于在主机发现工作流中使用管道。
## 安装
```bash
sudo apt install fping
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `<host> [host ...]` | 一个或多个目标主机/IP |
| `-f <file>` | 从文件读取目标(每行一个) |
| `-g <range>` | 生成目标列表(仅在未指定 -f 时有效) |
| `-a` | 显示存活的目标 |
| `-A` | 以 IP 地址格式显示目标 |
| `-c <n>` | 计数模式:向每个目标发送 N 次 ping |
| `-t <ms>` | 单个目标初始超时(默认:500 ms) |
| `-q` | 静默(不显示每目标/每次 ping 的结果) |
| `-s` | 输出最终统计信息 |
| `-r <n>` | 重试次数(默认:3) |
| `-b <bytes>` | Ping 数据大小(字节,用于 MTU 测试) |
| `-l` | 循环模式(持续监控) |
## 常用命令
```bash
# 从文件中 ping 一批 IP,只显示存活主机
fping -a -f targets.txt
# ping 整个 /24 子网,只显示存活主机
fping -a -g 192.168.1.0/24
# 生成并 ping 一个范围
fping -a -g 192.168.1.1 192.168.1.254
# 短超时快速扫描
fping -a -t 200 -g 10.0.0.0/24
# 每台主机 ping 3 次并显示统计
fping -c 3 -s -g 192.168.1.0/24
# 从 stdin 读取(管道)
cat hosts.txt | fping -a
# 抑制错误信息(更干净的输出)
fping -a -q -g 192.168.1.0/24 2>/dev/null
```
## 注意事项
1. fping 对子网主机发现的速度远超标准 ping——同时向所有目标发送探测包。
2. 始终加 `2>/dev/null` 抑制"ICMP Host Unreachable"消息,让存活主机输出更清晰。
3. `-t 200`(200ms 超时)适合局域网扫描;互联网目标建议增加到 1000ms 以上。
4. fping 输出可直接管道给 nmap:`fping -a -g 192.168.1.0/24 2>/dev/null | nmap -iL - -sV`。
5. 若网络屏蔽 ICMP,改用 nmap `-Pn` 或 ARP 扫描——ICMP 主机发现可能遗漏有防火墙的主机。
---
## 官方参考
- [fping 官方网站](https://fping.org/)
- [Kali fping](https://www.kali.org/tools/fping/)
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 |