vfsfitvnm / frida-il2cpp-bridge

A Frida module to dump, trace or hijack any Il2Cpp application at runtime, without needing the global-metadata.dat file.
https://github.com/vfsfitvnm/frida-il2cpp-bridge/wiki
MIT License
1.03k stars 202 forks source link

Perform not being called #146

Closed AntonBelousov closed 2 years ago

AntonBelousov commented 2 years ago

Hey, thank for you work! Unfortunately I get stuck at very beginning

I'm using this script

import "frida-il2cpp-bridge";
console.log("start");

Il2Cpp.perform(() => {
    console.log(Il2Cpp.unityVersion);
});

I compile it with frida-compile

node_modules/.bin/frida-compile index.ts -o out.js -c

and run resulting script with command:

frida -f com.bytetyper.iwantpizza -l out.js

output:

     ____
    / _  |   Frida 15.1.17 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at https://frida.re/docs/home/
   . . . .
   . . . .   Connected to iPhone (id=0000...)
Spawning `com.bytetyper.iwantpizza`...                                  
start
Spawned `com.bytetyper.iwantpizza`. Use %resume to let the main thread start executing!
vfsfitvnm commented 2 years ago

Hi, you spawned the app but you did not resume it (that's what the console says), add --no-pause to the command

AntonBelousov commented 2 years ago

Thnx a lot!

vfsfitvnm commented 2 years ago

Can we close this?