移动应用6.4k · #14222
find-refs
它能做什么
它介绍如何在 Android 应用中搜索对文本、类型、方法或字段的引用。适用于检查应用使用了哪些内容的安全审查人员和开发者。
适用场景
- ✓当审查人员想找出 Android 应用访问的每一个网址时。
- ✓当开发者想查看某个特定方法在其应用中被用在哪里时。
- ✓当分析人员需要将一个可疑字符串追溯到使用它的代码时。
技能链接
https://github.com/androguard/androguard/blob/master/.claude/skills/find-refs/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/androguard/androguard/blob/master/.claude/skills/find-refs/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add androguard/androguard --skill find-refs
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/androguard/androguard/master/.claude/skills/find-refs/SKILL.md -o SKILL.md
可以这样问 AI
“请找出这个 Android 应用中所有使用以 https 开头的网址的地方。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能按类型和值运行引用搜索,然后告诉 AI 通过阅读类或方法来检查每一个有意义的结果,并记录证据。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
/find-refs — Cross-reference search
Input
$ARGUMENTS:
- APK path
- Kind:
string|type|method|field - Needle (substring / descriptor / name)
Examples:
app.apk string passwordapp.apk type Landroid/app/Activity;app.apk method onCreateapp.apk field API_KEY
CLI
androguard -i "$1" --findrefs "$2" --findrefs-value "$3"
Python
from androguard import Application
app = Application("app.apk")
print(app.findrefs("string", "https://"))
print(app.findrefs("type", "Lokhttp3/OkHttpClient;"))
Follow-up
For each interesting hit:
--getclassor--decompile-methodthe declaring class/method- Note callers if the findrefs output includes them
- Record evidence in
workspace/reports/
If decompiler extra is missing, still try findrefs — it comes from the same [decompile] stack; install if needed.
常见问题
它可以搜索什么?
该技能列出了字符串、类型、方法和字段的搜索。
搜索之后做什么?
该技能说明应阅读匹配的类或方法,并记录它在哪里被调用。
它需要反编译器吗?
该技能说明,搜索在没有反编译器时仍可运行,不过仍建议使用相同的设置。
详情
作者的原始描述
Find string/type/method/field references in an APK via Androguard ASC findrefs
repo: androguard/androguard
热度
- GitHub 星标
- 6.4k
- 排名
- #14222
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/25
评论
- …