x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/reverse-engineering/tools/apktool.md
View on GitHub# Apktool
- **Category**: Reverse Engineering / Android Decompilation
- **Risk Level**: 🟢 Low
---
## 描述
Android APK 逆向辅助工具,用于解码 resources、AndroidManifest.xml、smali code、证书和打包 assets。用于移动应用静态审查,不用于重新分发修改后的应用。
## 安装
```bash
apt-get update && apt-get install -y apktool
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `d[ecode] <apk>` | 解码 APK |
| `b[uild] <dir>` | 构建已解码项目 |
| `if`, `install-framework <apk>` | 安装 framework 文件 |
| `-o, --output <path>` | decode 时为输出文件夹名(默认:apk.out),build 时为输出 APK 名 |
| `-f, --force` | (decode)强制删除目标目录 |
| `-f, --force-all` | (build)跳过变更检测并构建所有文件 |
| `-r, --no-res` | 不解码 resources |
| `-s, --no-src` | 不解码 sources/smali |
| `-p, --frame-path <dir>` | framework 文件目录 |
| `-t, --frame-tag <tag>` | framework 文件标签(decode) |
## 常用命令
```bash
# 解码 APK
apktool d app.apk -o /tmp/app_apktool
# 提取清单文件相关数据
grep -R "android:debuggable\\|android:allowBackup\\|android:exported" /tmp/app_apktool/AndroidManifest.xml
# 在解码资源中搜索端点和密钥
grep -RniE "api_key|secret|https?://" /tmp/app_apktool/res /tmp/app_apktool/assets
```
## 注意事项
1. 检查 `AndroidManifest.xml` 中的 `debuggable`、`allowBackup`、exported components、自定义权限和明文流量设置。
2. 即使 Java 反编译失败,Smali 输出也适合做定向 string 和 API 端点搜索。
3. 除非运行时篡改已获授权,否则不要 rebuild/sign/install 修改后的应用。
---
## 官方参考
- [Apktool CLI Parameters](https://apktool.org/docs/cli-parameters/)
- [Apktool GitHub](https://github.com/iBotPeaches/Apktool)
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 |