hgxszhj/https-github.com-zhaoxuya520-reverse-skill / skills/apk-reverse
apk-reverse
Flagged在 CLI 环境下做 Android APK 逆向时使用。适用于 APK 解包、Java 反编译、smali 修改、重打包、Frida 动态 Hook,以及按需切换到 so/native 分析。优先使用本机已安装的 jadx、apktool、frida、adb、ida-reverse、radare2。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.5 KB |
| references/android-advanced.md | markdown | 10.6 KB |
| references/apk-security-checklist.md | markdown | 6.8 KB |
| references/frida-bypass-kit.md | markdown | 2.4 KB |
| references/frida-cookbook.md | markdown | 13.8 KB |
| scripts/decode.ps1 | script | 5.6 KB |
| scripts/decode.sh | script | 4.8 KB |
| scripts/frida-run.ps1 | script | 3.9 KB |
| scripts/frida-run.sh | script | 4.0 KB |
| scripts/manifest-summary.ps1 | script | 2.6 KB |
| scripts/rebuild-sign-install.ps1 | script | 6.7 KB |
| scripts/rebuild-sign-install.sh | script | 6.6 KB |
scripts/manifest-summary.ps1
View on GitHub#requires -Version 5
[CmdletBinding()]
param(
[Parameter(Mandatory = $true)]
[string]$ManifestPath
)
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
[Console]::InputEncoding = [System.Text.UTF8Encoding]::new($false)
[Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false)
$OutputEncoding = [System.Text.UTF8Encoding]::new($false)
if (-not (Test-Path -LiteralPath $ManifestPath)) {
throw "Manifest not found: $ManifestPath"
}
$xml = [xml](Get-Content -LiteralPath $ManifestPath -Raw -Encoding UTF8)
$androidNs = 'http://schemas.android.com/apk/res/android'
$nsMgr = [System.Xml.XmlNamespaceManager]::new($xml.NameTable)
$nsMgr.AddNamespace('android', $androidNs)
function Get-AndroidAttr {
param(
[Parameter(Mandatory = $true)]$Node,
[Parameter(Mandatory = $true)][string]$Name
)
return [string]$Node.GetAttribute($Name, $androidNs)
}
$manifest = $xml.manifest
$packageName = [string]$manifest.package
"package=$packageName"
$permissions = @($manifest.SelectNodes('uses-permission'))
"permission_count=$($permissions.Count)"
foreach ($perm in $permissions) {
$name = Get-AndroidAttr -Node $perm -Name 'name'
if ($name) {
"permission=$name"
}
}
$componentQueries = @(
@{ Label = 'activity'; Path = 'application/activity' },
@{ Label = 'service'; Path = 'application/service' },
@{ Label = 'receiver'; Path = 'application/receiver' },
@{ Label = 'provider'; Path = 'application/provider' }
)
foreach ($query in $componentQueries) {
$nodes = @($manifest.SelectNodes($query.Path))
($query.Label + '_count=' + $nodes.Count)
foreach ($node in $nodes) {
$name = Get-AndroidAttr -Node $node -Name 'name'
$exported = Get-AndroidAttr -Node $node -Name 'exported'
$enabled = Get-AndroidAttr -Node $node -Name 'enabled'
($query.Label + '=' + $name + "`t" + $exported + "`t" + $enabled)
}
}
$mainActivities = @()
$activities = @($manifest.SelectNodes('application/activity'))
foreach ($activity in $activities) {
$filters = @($activity.SelectNodes('intent-filter'))
foreach ($filter in $filters) {
$hasMain = @($filter.SelectNodes('action')).Where({ (Get-AndroidAttr -Node $_ -Name 'name') -eq 'android.intent.action.MAIN' }).Count -gt 0
$hasLauncher = @($filter.SelectNodes('category')).Where({ (Get-AndroidAttr -Node $_ -Name 'name') -eq 'android.intent.category.LAUNCHER' }).Count -gt 0
if ($hasMain -and $hasLauncher) {
$mainActivities += (Get-AndroidAttr -Node $activity -Name 'name')
}
}
}
foreach ($entry in ($mainActivities | Select-Object -Unique)) {
"main_activity=$entry"
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |