fix(clone-app): correct Phase 2 decompile output dir and tighten package regex
This commit is contained in:
parent
919a1fb6af
commit
e4703a28fe
|
|
@ -54,10 +54,10 @@ Run, in order, reading each output before the next:
|
||||||
2. `bash "$RE/check-deps.sh"` — parse `INSTALL_REQUIRED:` / `INSTALL_OPTIONAL:` lines.
|
2. `bash "$RE/check-deps.sh"` — parse `INSTALL_REQUIRED:` / `INSTALL_OPTIONAL:` lines.
|
||||||
Install required deps with `bash "$RE/install-dep.sh" <dep>`; re-run check-deps until clean.
|
Install required deps with `bash "$RE/install-dep.sh" <dep>`; re-run check-deps until clean.
|
||||||
Ask the user before installing optional deps (vineflower, dex2jar).
|
Ask the user before installing optional deps (vineflower, dex2jar).
|
||||||
3. `bash "$RE/decompile.sh" "$APK"` (add `--deobf` if fingerprint showed heavy obfuscation).
|
3. `bash "$RE/decompile.sh" -o "$WORK/output" "$APK"` (add `--deobf` if fingerprint showed heavy obfuscation: `bash "$RE/decompile.sh" -o "$WORK/output" --deobf "$APK"`).
|
||||||
Output lands under the RE script's `output/` — note the `sources/` path it prints.
|
Sources land at `$WORK/output/sources/`.
|
||||||
4. If the app is Kotlin: `bash "$RE/recover-kotlin-names.sh" <sources> "$WORK/output/names/"`.
|
4. If the app is Kotlin: `bash "$RE/recover-kotlin-names.sh" "$WORK/output/sources" "$WORK/output/names/"`.
|
||||||
5. `bash "$RE/find-api-calls.sh" <sources>` (full scan; add `--ktor`/`--apollo`/`--paths` as
|
5. `bash "$RE/find-api-calls.sh" "$WORK/output/sources"` (full scan; add `--ktor`/`--apollo`/`--paths` as
|
||||||
the fingerprint suggests).
|
the fingerprint suggests).
|
||||||
|
|
||||||
From these outputs assemble: framework, HTTP stack, **API endpoint list**,
|
From these outputs assemble: framework, HTTP stack, **API endpoint list**,
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ if [[ -z "$input" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Case 1: full URL containing id=<package>
|
# Case 1: full URL containing id=<package>
|
||||||
if [[ "$input" =~ id=([a-zA-Z0-9._]+) ]]; then
|
if [[ "$input" =~ id=([a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)+) ]]; then
|
||||||
echo "${BASH_REMATCH[1]}"
|
echo "${BASH_REMATCH[1]}"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue