x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/rfid-nfc/tools/libnfc.md
View on GitHub# libnfc tools
- **Category**: RFID/NFC / NFC
- **Risk Level**: 🟡 Medium
---
## 描述
libnfc 项目的 NFC 命令行工具集。主要二进制文件包括 `nfc-list`、`nfc-mfclassic`、`nfc-mfultralight`、`nfc-scan-device`、`nfc-barcode`、`nfc-emulate-forum-tag4`、`nfc-jewel`、`nfc-read-forum-tag3` 和 `nfc-relay-picc`。用于 NFC 读卡器检测、标签识别,以及对授权卡片进行 MIFARE Classic 读写工作流。
## 安装
```bash
apt-get update && apt-get install -y libnfc-bin libnfc-examples
```
## 参数说明
### nfc-list
列出已连接的 NFC 设备和检测到的标签。无参数或 `--help` 标志——直接运行即可。
### nfc-mfclassic
用法:`nfc-mfclassic f|r|R|w|W a|b u|U<uid> <dump.mfd> [<keys.mfd> [f]]`
| 参数 | 说明 |
|------|------|
| `f` | 格式化卡片 |
| `r` | 读取卡片(key A 失败时跳过扇区) |
| `R` | 读取卡片(key A 失败时中止) |
| `w` | 写入卡片(key A 失败时跳过扇区) |
| `W` | 写入卡片(key A 失败时中止) |
| `a` / `b` | 使用 key A 或 key B 进行认证 |
| `u` | 无锁读写(无认证) |
| `U<uid>` | 无锁模式并指定 UID |
| `<dump.mfd>` | 转储文件路径(读取输出/写入输入) |
| `<keys.mfd>` | 可选密钥文件 |
| `f`(尾部) | 即使读取失败也强制写入 |
### nfc-mfultralight
读写 MIFARE Ultralight 标签。
### nfc-scan-device
扫描系统上可用的 NFC 设备。
## 常用命令
```bash
# 列出 NFC 设备和检测到的标签
nfc-list
# 扫描 NFC 设备
nfc-scan-device
# 读取 MIFARE Classic(key A,无锁模式)
nfc-mfclassic r a u /tmp/card.mfd
# 使用密钥文件读取 MIFARE Classic
nfc-mfclassic r a u /tmp/card.mfd /tmp/keys.mfd
# 写入 MIFARE Classic(key A,无锁模式)——高风险
nfc-mfclassic w a u /tmp/card.mfd
# 读取 MIFARE Ultralight
nfc-mfultralight r /tmp/ultralight.mfd
```
## 注意事项
1. 除非明确授权,否则不要写入卡片数据。
2. 某些读卡器需要 PC/SC 服务调整或 libnfc 配置。
3. 卡片转储文件应作为敏感证据保存,并立即计算哈希。
---
## 官方参考
- [libnfc GitHub](https://github.com/nfc-tools/libnfc)
- [libnfc Wiki](https://github.com/nfc-tools/libnfc/wiki)
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 |