frida / frida-tools

Frida CLI tools
Other
338 stars 95 forks source link

Loaded script globals are no longer added to the REPL namespace #117

Open detunized opened 1 year ago

detunized commented 1 year ago

I upgraded to Frida 15.2.2 and I have to following problem. I used to load a JS script into Frida REPL and all the functions defined in that script were available in the REPL. In the latest version, even though they are executed from the script, I cannot call them manually from the REPL anymore.

Example script:

function testFunc() {
    console.log("testFunc called");
}

Run like this:

> frida -U -F -l test.js --no-pause

In version 15.1.4 I was able to type testFunc in the REPL (with autocompletion even) and execute this function. In 15.2.2 this function is no longer available.