i get some error when run this command:
frida -U -f com.app.android -l ANYTHING.js --no-paus
============================================================== https://codeshare.frida.re/@pcipolloni/universal-android-ssl-pinning-bypass-with-frida/
i put this script insted of ANYTHING.js but dose not work for me.
===============================================================
Error:
ReferenceError: identifier 'cf' undefined at [anon] (../../../frida-gum/bindings/gumjs/duktape.c:81174) at /repl1.js:25 at frida/node_modules/frida-java/lib/vm.js:42 at E (frida/node_modules/frida-java/index.js:348) at frida/node_modules/frida-java/index.js:300 at frida/node_modules/frida-java/lib/vm.js:42 at frida/node_modules/frida-java/index.js:280 at /repl1.js:63 at frida/runtime/core.js:55
This is not a bug in Frida, but in this particular script by @pcipolloni. The script is using a variable without declaring it first, which used to be allowed in older versions of Frida as we accidentally didn't enable strict mode.
This is not a bug in Frida, but in this particular script by @pcipolloni. The script is using a variable without declaring it first, which used to be allowed in older versions of Frida as we accidentally didn't enable strict mode.
How to fix this problem?
@ehsanpc9999 Add var to the beginning of line 25 of @pcipolloni's script. Ideally @pcipolloni sees this and can fix it, or you can post your own tweaked version with proper attribution.
My bad! Thanks guys for pointing it out. I'm adding the fix right now.
Most helpful comment
@ehsanpc9999 Add
varto the beginning of line 25 of @pcipolloni's script. Ideally @pcipolloni sees this and can fix it, or you can post your own tweaked version with proper attribution.