@efffrida/il2cpp-桥
效果整合 frida-il2cpp-桥,用于 在frida内 仪器Unity il2cpp应用.
FridaIl2cppBridge.il2cppPerformEffect在内部运行效果Il2Cpp.perform,因此调用器的线程附着在 il2cpp 域上,同时 它执行.Assembly财务报告和审定财务报表Class检查集会、班级、田地、方法以及 巢类作为效果. 平地变种 (assembly, (中文(简体) ),class, (中文(简体) ),field, (中文(简体) ), 将失踪成员视为缺陷try*变体失败NoSuchElementError相反,和*Cached变体记忆中的外观Cache缩放CacheCapacity引用(默认为100)。 快取密钥 以本地手柄比较 il2cpp 对象 .Equivalence比较图象、类、字段和方法 手柄.Extensions提供Dictionary财务报告和审定财务报表List包装System.Collections.Generic.Dictionary财务报告和审定财务报表System.Collections.Generic.List对象.
示例用途
import "@efffrida/polyfills";
import * as Effect from "effect/Effect";
import { Assembly, Class, Extensions, FridaIl2cppBridge } from "@efffrida/il2cpp-bridge";
import { FridaRuntime } from "@efffrida/platform";
Effect.gen(function* () {
const csharp = yield* Assembly.assembly("Assembly-CSharp");
const player = yield* Class.tryClass(csharp.image, "Player");
const allPlayers = yield* Class.tryField<Il2Cpp.Object>(player, "s_AllPlayers");
const players = Extensions.List.lift(allPlayers.value);
yield* Effect.logInfo(`There are ${players.length} players`);
}).pipe(FridaIl2cppBridge.il2cppPerformEffect, FridaRuntime.runMain);