Frida: I get some error

Created on 15 May 2019  路  4Comments  路  Source: frida/frida

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

Most helpful comment

@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.

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SajjadPourali picture SajjadPourali  路  4Comments

rafaelwedbiz picture rafaelwedbiz  路  3Comments

cgbcsh picture cgbcsh  路  4Comments

koralaro picture koralaro  路  3Comments

asad0x01 picture asad0x01  路  4Comments