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/scalpel.md
View on GitHub# scalpel
- **Category**: Forensics / File Carving
- **Risk Level**: 🟢 Low
---
## 描述
高性能文件雕复工具,最初基于 Foremost 开发。根据配置文件中定义的文件头/尾签名,从磁盘镜像、原始分区或任何块设备中恢复文件。不依赖文件系统元数据,能够从损坏或重新格式化的介质中恢复数据。支持数十种文件类型,并允许自定义签名定义。
## 安装
```bash
sudo apt install scalpel
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `-c FILE` | 选择配置文件 |
| `-o DIR` | 设置雕复文件的输出目录 |
| `-b` | 即使在最大雕复大小内未发现定义的文件尾也进行雕复 |
| `-i FILE` | 从指定文件读取磁盘镜像名称 |
| `-r` | 仅查找重叠头/尾中的第一个(foremost 兼容模式)|
| `-V` | 显示版权信息并退出 |
| `-n` | 不为提取的文件添加扩展名 |
| `-q` | 仅在文件头与簇对齐时进行雕复 |
| `-p` | 执行镜像文件预览;审计日志指示将雕复哪些文件 |
## 常用命令
```bash
# 编辑配置文件以启用需要的文件类型(取消注释相关行)
sudo nano /etc/scalpel/scalpel.conf
# 从磁盘镜像中雕复文件
scalpel -c /etc/scalpel/scalpel.conf -o /tmp/carved/ disk.img
# 从原始设备中雕复文件
sudo scalpel -c /etc/scalpel/scalpel.conf -o /tmp/carved/ /dev/sdb
# 预览可恢复文件但不提取
scalpel -p -c /etc/scalpel/scalpel.conf -o /tmp/preview/ disk.img
# 仅报告(不提取)
scalpel -n -c /etc/scalpel/scalpel.conf -o /tmp/report/ disk.img
# 仅匹配文件头进行雕复(不需要文件尾)
scalpel -r -c /etc/scalpel/scalpel.conf -o /tmp/carved/ disk.img
# 使用自定义配置文件
scalpel -c custom.conf -o /tmp/carved/ disk.img
```
## 注意事项
1. 配置文件(`/etc/scalpel/scalpel.conf`)默认注释了所有文件类型——运行前需取消注释要恢复的类型。
2. 输出目录在运行前不能已存在;scalpel 会自动创建该目录。
3. scalpel 是非破坏性的——以只读模式读取输入文件/设备,不会修改源数据。
4. 对于大型磁盘镜像,先使用 `-p`(预览)估算恢复结果,再执行完整提取。
5. 可在配置文件中添加自定义签名,格式为:`type case_sensitive max_size header [footer]`。
6. 由于优化了 I/O 和内存管理,scalpel 通常比 `foremost` 执行相同任务更快。
7. 查看输出目录中的 `audit.txt` 文件,了解所有雕复文件及其偏移量的摘要。
---
## 官方参考
- [Kali scalpel](https://www.kali.org/tools/scalpel/)
- [scalpel (GitHub - Sleuth Kit)](https://github.com/sleuthkit/scalpel)
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 |