x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/forensics/tools/exiftool.md
View on GitHub# ExifTool
- **Category**: Forensics / Metadata Analysis
- **Risk Level**: 🟢 Low
---
## 描述
强大的文件元数据读取和修改工具,支持 200+ 文件格式(图片/PDF/Office/视频/音频等)。从图片中提取 GPS 坐标、拍摄设备、时间戳等,从 Office 文档提取作者信息、修改记录等,在取证和 OSINT 中广泛使用。
## 安装
```bash
sudo apt install libimage-exiftool-perl
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `-TAG` | 读取指定标签(如 `-GPSLatitude`)|
| `-TAG=VALUE` | 设置标签值(留空则删除该标签)|
| `-all=` | 删除所有元数据 |
| `-csv` | CSV 格式输出 |
| `-json` | JSON 格式输出 |
| `-r` | 递归处理目录 |
| `-if EXPR` | 条件过滤(如 `-if '$GPSLatitude'`)|
| `-ext EXT` | 只处理指定扩展名文件 |
| `-overwrite_original` | 覆盖原文件(不备份)|
## 常用命令
```bash
# 读取所有元数据
exiftool image.jpg
# 提取特定字段
exiftool -GPSLatitude -GPSLongitude image.jpg
exiftool -Author -Creator document.pdf
# 批量处理目录
exiftool /tmp/images/
# 递归处理
exiftool -r /tmp/downloads/
# CSV 输出(便于分析)
exiftool -csv /tmp/images/ > /tmp/metadata.csv
# 修改元数据(清除 GPS 信息)
exiftool -GPSLatitude= -GPSLongitude= image.jpg
# 清除所有元数据
exiftool -all= document.pdf
# 从 PDF 提取作者信息(OSINT 用途)
exiftool -Author document.pdf
# 查找含有 GPS 的图片
exiftool -if '$GPSLatitude' -GPSLatitude -FileName -r /tmp/photos/
```
## 注意事项
1. 务必在证据文件的副本上操作——仅在有意修改源文件时才使用 `-overwrite_original`。
2. EXIF 中的 GPS 坐标可转换为 Google Maps 链接:`https://maps.google.com/?q=<lat>,<lon>` 。
3. 使用 `-csv` 输出对目录中的大量文件进行批量元数据分析——可轻松导入电子表格或 Python pandas。
4. 许多社交媒体平台在上传时会剥离 EXIF 数据;元数据最有可能保留在直接分享的图片中(邮件、云链接、Dropbox)。
5. OSINT 场景中,`exiftool -Author -Creator -Producer -Company` 可从 Office 文档和 PDF 中提取软件版本、内部用户名和组织名称。
---
## 官方参考
- [ExifTool 官方网站](https://exiftool.org/)
- [ExifTool Application Documentation](https://exiftool.org/exiftool_pod.html)
- [ExifTool 标签名称参考](https://exiftool.org/TagNames/)
- [ExifTool (GitHub)](https://github.com/exiftool/exiftool)
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 |