An error occurred when using [email protected] with frida-node.
frida-node code
let device = await frida.getLocalDevice();
let spawnExe = await device.spawn(config.path);
console.log(spawnExe);
var session = await device.attach(spawnExe);
let script = await session.createScript(jsSource);
fScript = script;
script.message.connect(onMessage);
await script.load();
await device.resume(spawnExe);
Il2cpp-bridge code
import "frida-il2cpp-bridge";
Il2Cpp.perform(() => {
console.log(Il2Cpp.unityVersion);
});
When I run the script using node app.js, it throws the error: "Error: access violation accessing 0x0 at initialize (/script1.js:1077) at clearTimeout (native) at onAdded (/script1.js:1070)"
@vfsfitvnm Can u resolve this problem
The same error also occurs when using the frida command in the terminal.
2022.3.47f1
What is the application name? What is the specs of the device?
What is the application name? What is the specs of the device?
it's a Linux server side,
What is the application name? What is the specs of the device?
It seems that the .so hasn't been initialized yet, so Il2Cpp was null. After I added a loop to check whether the game's .so module has been loaded, it started working correctly.
It seems that the .so hasn't been initialized yet, so Il2Cpp was null. After I added a loop to check whether the game's .so module has been loaded, it started working correctly.
Uhm, Il2Cpp.perform should take care of that. I'm reopening this as I want to investigate... I took note of the executable name
@CGxyol by the way, what happens if you don't use frida-node? E.g. using frida cli directly