directly define StackConsumer in frida

This commit is contained in:
Jean-Marie Mineau 2025-04-02 14:26:14 +02:00
parent a0cb49fd77
commit 28f5ac772c
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
5 changed files with 54 additions and 84 deletions

View file

@ -330,11 +330,6 @@ def collect_runtime(apk: Path, device_name: str, file_storage: Path, output: Tex
with FRIDA_SCRIPT.open("r") as file:
jsscript = file.read()
with STACK_CONSUMER_B64.open("r") as file:
jsscript = jsscript.replace(
"<PYTHON REPLACE StackConsumer.dex.b64>",
file.read().replace("\n", "").strip(),
)
pid = device.spawn([app])
session = device.attach(pid)