Add authentication
This commit is contained in:
parent
5ccc494c45
commit
0550739418
2 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,7 @@ fi
|
||||||
/patch-main.py
|
/patch-main.py
|
||||||
mkdir -p app/lib/arm64-v8a
|
mkdir -p app/lib/arm64-v8a
|
||||||
cp /libfrida-gadget.so /libfrida-gadget.config.so 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 /apktool.jar b -o patched.apk app
|
||||||
java -jar /apk-signer.jar --overwrite -a patched.apk
|
java -jar /apk-signer.jar --overwrite -a patched.apk
|
||||||
cp patched.apk /data
|
cp patched.apk /data
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
"interaction": {
|
"interaction": {
|
||||||
"type": "listen",
|
"type": "listen",
|
||||||
"address": "0.0.0.0",
|
"address": "0.0.0.0",
|
||||||
"port": 27042
|
"port": 27042,
|
||||||
|
"token": "FRIDA_TOKEN"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue