- name
SKILL.md
The skill file stays in the publisher's repository.
Paste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add index-login/MobileRE-Skill --skill func-naming -a cursor -yPaste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add index-login/MobileRE-Skill --skill func-naming -a claude-code -yPaste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add index-login/MobileRE-Skill --skill func-naming -a codex -yPaste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add index-login/MobileRE-Skill --skill func-naming -a grok -ySend the copied message in a Grok Bot chat. The Bot fetches this SKILL.md from GitHub and adds it to the skills all your Bots share.
Install this skill: https://github.com/index-login/MobileRE-Skill/tree/HEAD/.kilo/skill/func-namingFrom the publisher
输入一个地址,输出"它是什么函数 / 什么算法"。
先定地址体系(混用必空 hook):
拿地址先问它来自哪个工具。同一地址 IDA 能跳、Ghidra 打空,是基址差,不是代码问题。
(so.py info 的 raw=YES/NO 只表示该段 vaddr == offset,不是错误。)
.so 已拉到本地(adb pull)。
记录地址来源(哪条字符串 / 哪个 caller / 哪个崩溃偏移)。
so.py 可用;llvm-nm 在 NDK bin 下(不在 PATH)。
不熟 so.py / Ghidra 的完整用法时,先看 native-analysis.md ›「3.5 SO 分析顺序(tools/so.py 离线工具)」 与 「四、SO 静态分析(Ghidra MCP)」。
python3 tools/so.py info <so> --json
# NDK: llvm-nm -D --defined-only <so> | findstr /i <addr>
命中即用符号名结束。C++ mangled(_Z...)用 llvm-cxxfilt 还原签名。
地址来自字符串 xref 时,xref 可能落在内联 assert/尾部。向上找序言(stp x29, x30 / sub sp, sp)再继续。
python3 tools/so.py strings <so> --grep <PAT> --min 8 # 找语义字符串
python3 tools/so.py strref <so> 0x<STR_VADDR> # 串 → 引用点
python3 tools/so.py disasm <so> --addr 0x<FUNC> --count 60
python3 tools/so.py callers <so> 0x<FUNC> # 调用者
需要伪代码、数据 xref、改名时上 Ghidra(见下一步)。
so.py 是快查,Ghidra 是语义;两者协作,不是替代。
func_0x… → 先跑 tools/ghidra/so_audit_prep.java 做 PLT 命名(见 native-audit.md ›「4.1 前置:Ghidra 两件事(不做就无法审)」)file_path,不要传 language——对 ELF 传 language 会按 Raw Binary 导入(0 函数、1 符号)Ghidra 地址 = so.py 地址 + image_base(默认 0x100000,用 ghidra_get_current_program_info 确认)ghidra_decompile_functionso.py callers 为 0 时用 ghidra_get_function_xrefs(含 DATA/虚表引用)ghidra_rename_function_by_address → 重反编译调用方,确认新名已传播字符串 xref 用
so.py strref更快;Ghidra 对未定义数据的 xref 可能查不到。Ghidra 工作流(导入/连接/工具组)见 native-analysis.md ›「四、SO 静态分析(Ghidra MCP)」。
完整表(魔数、成对调用、参数/返回值模式、caller 递归)见手册。
识别出来之后去哪(避免在大方向上原地打转):
REPORT.md:地址 / 建议名 / 置信度 / 依据ghidra_rename_function(可选)详细处理与实例:references/so-func-naming.md ›「5. 卡壳树(真实场景)」。
REPORT.md 命名表(地址 / 名称 / 置信度 / 依据)已知地址判断函数用途/算法(无符号函数命名):先查 .dynsym,再取字符串/魔数/成对调用特征,最后回填命名。SO 层深挖的单步能力,入口仍在 frida-mobile-security;恢复结构体用 native-analysis §3.7,判漏洞用 native-audit。
---name: func-namingdescription: 已知地址判断函数用途/算法(无符号函数命名):先查 .dynsym,再取字符串/魔数/成对调用特征,最后回填命名。SO 层深挖的单步能力,入口仍在 frida-mobile-security;恢复结构体用…---# .kilo/skill/func-naming/SKILL.mdFAQ
Download .kilo/skill/func-naming/SKILL.md from the publisher, or copy the path and open the repository. PlugMCP lists the skill and does not host the file.
The publisher keeps it at https://github.com/index-login/MobileRE-Skill.
Claude, Cursor, Codex, and Grok Build can read a SKILL.md you add from the publisher's repository. Grok Bot installs it when you send the skill's GitHub folder link in a chat.