so-emulate SKILL.md skillA

so-emulate from index-login/mobilere-skill is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add index-login/mobilere-skill/so-emulate@git:20261023.8337634

Pins git:20261023.8337634 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
index-login/mobilere-skill
Path
.kilo/skill/so-emulate/SKILL.md
Versions recorded
1
Latest version
git:20261023.8337634, committed Oct 23, 2026
Size
3,635 bytes
Repository stars
252
License
MIT

用 Unicorn 离线调试/模拟单个 SO 函数:不启动 App 跟踪执行、对给定输入复算算法、解密或解码数据,或绕过 JNI/syscall/libc 等环境依赖。当用户要跑一个函数、验证算法输出、批量试输入、或真机 hook 不便时使用。SO 层深挖的单步能力,入口仍在 frida-mobile-security;能真机 hook 就先 hook;本 skill 不含调试器。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# so-emulate - 单函数离线仿真

用 Unicorn 离线调试/模拟单个 SO 函数:不启动 App 跟踪执行、对给定输入复算、解密/解码、或绕过 JNI/libc/syscall 依赖。

## 何时用 / 何时不用

| 用 | 不用 |
|---|---|
| 要试上万个输入 / 穷举 | App 能跑、只看一次真实调用 → **真机 hook** |
| 反调试挂不上 / 不想在设备留痕 | 依赖真实上下文(网络、文件、TEE)→ 真机 hook |
| 算法复算 / 解密验签 / 批量试参 | 要调试断点/单步 → GDB(本 skill 不是调试器) |
| 只想看这个函数对给定输入输出什么 | 要判漏洞/可达性 → `references/native-audit.md` |

## 前置

1. `pip install unicorn`(依赖见根目录 `requirements.txt`)。
2. `.so` 已拉到本地。
3. 先确认映射方式:`python3 tools/so.py info <so>` 看 PT_LOAD 的 `raw=YES/NO`。
4. 默认先真机 hook([native-analysis.md ›「三、SO 动态分析」](../../../references/native-analysis.md));确实跑不了再仿真。

## 步骤

### 1. 一行跑起来

```bash
python3 tools/emu_run.py <so> --sym <export> --args "0,0" --timeout 5
# 按地址:--off 0x1234
# JNI:--jni --args "env,0" --trace-stubs
```

输出形如 `x0=0x0  insns=4`。

### 2. 看信号,对症处理

| 现象 | 含义 / 下一步 |
|---|---|
| 正常返回 `x0=…` | 成功;记录 `insns` 与输出 |
| 立刻取指/数据错 | 映射方式错:`so.py info` 看 `raw`;必要时 `--raw` |
| `[!] unstubbed: name` | 导入没桩:`--imp name` 或 `--stub name=val` |
| TLS 崩 / `__stack_chk_fail` | 走 Harness `setup_tls()`(见手册) |
| 一直不返回 | 加计数/`--timeout`;可能是死循环 |
| JNI 返回 NULL 后崩 | `--trace-stubs` 看命中槽位;按槽补桩 |

### 3. 要观测中间状态

```bash
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add index-login/mobilere-skill/so-emulate@sha256:402c33de860eca16

The line at the top of this page pins the label git:20261023.8337634, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_334ajwskcbxj4thn.svg)](https://markdownregistry.com/a/art_334ajwskcbxj4thn)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Oct 23, 2026.

versioncommittedcommitsizeaudit
git:20261023.8337634 latest2026-10-23 8337634 3,635 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (3635 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

index-login/mobilere-skill · 252 stars · license MIT · pushed 2026-11-08 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_334ajwskcbxj4thn
GET https://markdownregistry.com/api/v1/resolve?ref=index-login/mobilere-skill/so-emulate
GET https://markdownregistry.com/api/v1/blob/402c33de860eca16125d59ecf6edc0c44af1b9dcd736701cbec9cf6d445eda64

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from index-login/mobilere-skill

dex-mem-dump SKILL.md skill
index-login/mobilere-skill · .kilo/skill/dex-mem-dump/SKILL.md · 运行时 DEX 内存 dump / 脱壳(root 直读 /proc/<pid>/mem,不注入、不 ptrace):常规解包拿不到、抽取壳未回填、或目标查 TracerPid 时用。流程:推工具 → 跑 → 拉回 → 清理;分诊与排障见…
git:20261023.3fb7043 · audit A · 252 stars
frida-mobile-security SKILL.md skill
index-login/mobilere-skill · .kilo/skill/frida-mobile-security/SKILL.md · 用于 Android/iOS 移动应用安全逆向分析:Frida 动态插桩、绕过反调试/反注入/加固壳、脱壳、加密与 native SO 层 hook、运行时行为分析、jadx-mcp 静态攻击面分析、离线 SO 静态分析(ELF…
git:20261108.0f92827 · audit A · 252 stars
func-naming SKILL.md skill
index-login/mobilere-skill · .kilo/skill/func-naming/SKILL.md · 已知地址判断函数用途/算法(无符号函数命名):先查 .dynsym,再取字符串/魔数/成对调用特征,最后回填命名。SO 层深挖的单步能力,入口仍在 frida-mobile-security;恢复结构体用 native-analysis…
git:20261108.0f92827 · audit A · 252 stars
karpathy-guidelines SKILL.md skill
index-login/mobilere-skill · .kilo/skill/karpathy-guidelines/SKILL.md · 减少 LLM 常见编码错误的行为准则。在编写、审查或重构代码时使用,避免过度设计、精准修改、暴露假设、定义可验证的成功标准。
git:20260803.71f8be9 · audit A · 252 stars
so-function-recovery SKILL.md skill
index-login/mobilere-skill · .kilo/skill/so-function-recovery/SKILL.md · 大型加固 SO 函数级还原流水线(2000+ 函数、无 .eh_frame、CFF 混淆、内嵌字节码 VM)。用台账三层筛选替代逐个读函数,用指针表交叉检查函数边界,用动态 trace 反推 VM…
git:20261108.cdc9cbf · audit A · 252 stars
vmp-analysis SKILL.md skill
index-login/mobilere-skill · .kilo/skill/vmp-analysis/SKILL.md · 字节码 VM / VMP 壳逆向的执行流水线:从"确认是 VM"到"反汇编出可读指令"的 8 步固定流程。用 profile 描述编码模型(换壳只换 JSON),用动态 trace 反推 opcode 编码,用命中率 > 95%…
git:20261108.d0b8de4 · audit A · 252 stars
AGENTS.md AGENTS.md file
index-login/mobilere-skill · AGENTS.md
git:20261108.83cd5a4 · audit A · 252 stars

Every file in index-login/mobilere-skill

Browse by kind, by grade A, or by owner.