Closed Apeng7364 closed 2 years ago
This is now accomplished by explicitly adding properties to globalThis
. E.g. to expose a function as a
:
globalThis.a = function () {
};
And to expose more than one with minimal boilerplate you can do something like:
function a() {
}
function b() {
}
Object.assign(globalThis, { a, b });
After upgrade to frida-tools 11.0.0, cannot access variables in scripts in the interactive shell script:
run frida and print variable
a
in the interactive shell: