You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting an error when compiling using frida-compile
agent.js looks like this
const ExNativeFunction = require('frida-ex-nativefunction');
const openAddr = Module.findExportByName('libc.so', 'open');
const open = new ExNativeFunction(openAddr, 'int', ['pointer', 'int']);
console.log(open.address); // The provided openAddr
console.log(open.retType); // The provided return type
console.log(open.argTypes); // The provided argument types
console.log(open.abi); // The provided abi
// Shorthand for Interceptor.attach
const listener = open.intercept({
onEnter: function (arg) {
console.log(args);
},
onLeave: function () {},
});
listener.detach(); // You can use it like usual
// Shorthand for Interceptor.replace
open.replace((pathPtr, flags) => {
return open(pathPtr, flags);
});
Now when i run frida-compile agent.js -o _agent.js, it throws an error regarding the imports
I am getting an error when compiling using
frida-compile
agent.js looks like this
Now when i run
frida-compile agent.js -o _agent.js
, it throws an error regarding the importsThe text was updated successfully, but these errors were encountered: