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/frida.md
View on GitHub# Frida
- **Category**: Reverse Engineering / Runtime Instrumentation
- **Risk Level**: 🔴 High
---
## 描述
将 JavaScript 注入运行中进程的动态插桩工具集。在移动评估中,用于检查运行时行为、绕过 SSL pinning/root 检测、钩取加密函数,并在授权时提取运行时密钥。
## 安装
```bash
pipx install frida-tools
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `-U` / `--usb` | 连接 USB 设备 |
| `-D <id>` / `--device` | 连接指定 ID 的设备 |
| `-R` / `--remote` | 连接远程 frida-server |
| `-H <host>` / `--host` | 连接指定主机上的远程 frida-server |
| `-f <target>` / `--file` | 启动目标应用 |
| `-F` / `--attach-frontmost` | 附加到前台应用 |
| `-n <name>` / `--attach-name` | 按进程名称附加 |
| `-N <id>` / `--attach-identifier` | 按应用标识符附加 |
| `-p <pid>` / `--attach-pid` | 按 PID 附加 |
| `-W <pattern>` / `--await` | 等待匹配 PATTERN 的 spawn |
| `-l <script>` / `--load` | 加载 JavaScript hook 脚本 |
| `-e <code>` / `--eval` | 直接执行 JavaScript 代码 |
| `-c <uri>` / `--codeshare` | 加载 Frida CodeShare 脚本 |
| `-C <cmodule>` / `--cmodule` | 加载 C 模块 |
| `-P <json>` / `--parameters` | JSON 格式参数(同 Gadget) |
| `--pause` | spawn 后暂停主线程 |
| `-q` | 静默模式(无提示),`-l` 和 `-e` 执行后退出 |
| `-t <sec>` / `--timeout` | 静默模式下终止前等待秒数 |
| `-o <file>` / `--output` | 输出到日志文件 |
| `--runtime {qjs,v8}` | 使用的脚本运行时 |
| `--kill-on-exit` | Frida 退出时终止 spawned 程序 |
| `--auto-perform` | 自动用 Java.perform 包裹输入代码 |
| `--token <token>` | 使用 TOKEN 向 HOST 认证 |
| `--certificate <cert>` | 与 HOST 通信时使用 TLS,期望 CERTIFICATE |
## 常用命令
```bash
# 列出 USB 设备进程
frida-ps -Uai
# 以 hook 方式启动 Android 应用(默认:自动恢复)
frida -U -f <package.name> -l ssl-bypass.js
# 附加到运行中进程
frida -U -n <process-name> -l hook.js
```
## 注意事项
1. Android 需要匹配的 `frida-server`,iOS 需要受支持的环境配置。
2. 运行时钩子会改变应用行为;绕过控制前确认明确授权。
3. 将钩子脚本和 app/device versions 作为证据保存。
---
## 官方参考
- [Frida Documentation](https://frida.re/docs/home/)
- [frida-tools GitHub](https://github.com/frida/frida-tools)
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 |