Add authentication

This commit is contained in:
Mathieu Strypsteen 2024-03-04 18:35:15 +01:00
parent 5ccc494c45
commit 0550739418
2 changed files with 3 additions and 1 deletions

View file

@ -8,6 +8,7 @@ fi
/patch-main.py
mkdir -p app/lib/arm64-v8a
cp /libfrida-gadget.so /libfrida-gadget.config.so app/lib/arm64-v8a
sed "s/FRIDA_TOKEN/${FRIDA_TOKEN:-secret}/" -i app/lib/arm64-v8a/libfrida-gadget.config.so
java -jar /apktool.jar b -o patched.apk app
java -jar /apk-signer.jar --overwrite -a patched.apk
cp patched.apk /data

View file

@ -2,6 +2,7 @@
"interaction": {
"type": "listen",
"address": "0.0.0.0",
"port": 27042
"port": 27042,
"token": "FRIDA_TOKEN"
}
}