| 79 | } |
| 80 | |
| 81 | function attach_il2cpp(start_pb, start_log) { |
| 82 | while (init_export == null) { |
| 83 | init_export = module_il2cpp.findExportByName("il2cpp_init") |
| 84 | } |
| 85 | const interceptor = Interceptor.attach(init_export, { |
| 86 | onLeave: function (ret) { |
| 87 | interceptor.detach(); |
| 88 | helper.send_message("il2cpp_init", {"result": "success", "info": Process.findModuleByName("libil2cpp.so")}) |
| 89 | if (start_pb) { |
| 90 | protobuf.parse_proto_class(); |
| 91 | } |
| 92 | if (start_log) { |
| 93 | log.hook_unity_log(); |
| 94 | } |
| 95 | } |
| 96 | }); |
| 97 | } |
| 98 | |
| 99 | function il2cpp_list_image() { |
| 100 | helper.send_message("il2cpp_images", base.images()); |