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/p0f.md
View on GitHub# p0f
- **Category**: Information Gathering / Passive OS Fingerprinting
- **Risk Level**: 🟢 Low
---
## 描述
纯被动的操作系统和应用指纹识别工具。通过分析捕获的网络流量(不主动发包)推断远程主机的操作系统、浏览器、ISP、设备类型等。适合隐蔽侦察场景。
## 安装
```bash
sudo apt install p0f
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `-i IFACE` | 监听指定的网络接口 |
| `-r FILE` | 从给定文件读取离线 pcap 数据 |
| `-o FILE` | 将信息写入指定日志文件 |
| `-s SOCKET` | 在命名 Unix socket 上响应 API 查询 |
| `-f FILE` | 指纹数据库文件(默认:/etc/p0f/p0f.fp) |
| `-u USER` | 切换到指定的非特权账户并 chroot |
| `-p` | 将监听接口设为混杂模式 |
| `-d` | 后台守护进程模式 |
| `-L` | 列出所有可用网络接口并退出 |
| `-S <limit>` | 限制并行 API 连接数(默认:20) |
| `-t c,h` | 设置连接/主机缓存过期时间(默认:30s,120m) |
| `-m C,H` | 限制活跃连接数/主机数(默认:1000,10000) |
## 常用命令
```bash
# 监听接口,被动识别
sudo p0f -i eth0
# 分析捕获的 pcap 文件
p0f -r /tmp/capture.pcap
# 监听并输出日志
sudo p0f -i eth0 -o /tmp/p0f.log
# API 模式(供其他工具调用)
sudo p0f -i eth0 -s /tmp/p0f.sock
```
## 注意事项
1. p0f 不发送任何数据包——对目标和 IDS/IPS 完全不可见;非常适合红队行动中的隐蔽侦察。
2. 在网关或网络分流设备上运行 p0f,可被动识别网段内所有通信主机的指纹。
3. 识别准确度取决于流量大小——低流量主机结果可能不确定;输出中的在线时长估算有助于验证主机在线时长。
4. 使用 `-r` 模式可离线分析已捕获的 pcap 文件——在无法实时监听时非常有用。
5. API socket(`-s`)允许自定义工具和脚本实时以编程方式查询 p0f 结果。
---
## 官方参考
- [p0f 官网](https://lcamtuf.coredump.cx/p0f3/)
- [p0f GitHub(非官方镜像)](https://github.com/p0f/p0f)
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 |