fix(clone-app): correct Phase 2 decompile output dir and tighten package regex

This commit is contained in:
fatih.bulut 2026-06-21 02:23:34 +03:00
parent 919a1fb6af
commit e4703a28fe
2 changed files with 5 additions and 5 deletions

View File

@ -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.
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).
3. `bash "$RE/decompile.sh" "$APK"` (add `--deobf` if fingerprint showed heavy obfuscation).
Output lands under the RE script's `output/` — note the `sources/` path it prints.
4. If the app is Kotlin: `bash "$RE/recover-kotlin-names.sh" <sources> "$WORK/output/names/"`.
5. `bash "$RE/find-api-calls.sh" <sources>` (full scan; add `--ktor`/`--apollo`/`--paths` as
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"`).
Sources land at `$WORK/output/sources/`.
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" "$WORK/output/sources"` (full scan; add `--ktor`/`--apollo`/`--paths` as
the fingerprint suggests).
From these outputs assemble: framework, HTTP stack, **API endpoint list**,

View File

@ -8,7 +8,7 @@ if [[ -z "$input" ]]; then
fi
# 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]}"
exit 0
fi