-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
47 lines (40 loc) · 1.31 KB
/
Copy pathindex.ts
File metadata and controls
47 lines (40 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import "frida-il2cpp-bridge";
import Settings from "./config.json";
import { PatcherModuleJava, PatcherModuleNative } from "./helper.js";
import { SendMessageHttp } from "./agent/native/hooks/HttpSendMessage.js";
import { Log } from "./agent/native/hooks/Log.js";
import { Test } from "./agent/java/test/test.js";
if (Settings.ExecuteJavaModules) {
JavaMain();
}
if (Settings.ExecuteIl2cppModules) {
//Il2CppDumpTools()
Il2cppMain();
}
// Module Loading Order is important, later ones override previously loaded ones
async function JavaMain() {
console.log(`Executing Java modules...`);
Java.perform(() => {
const javaModules: PatcherModuleJava[] = [
new Test(),
]
javaModules.forEach(async module => {
await module.initializeJavaModule();
});
});
console.log(`Finished Executing Java modules`);
}
async function Il2cppMain() {
console.log(`Executing Il2cpp modules...`);
Il2Cpp.perform(() => {
console.log(Il2Cpp.unityVersion);
const nativeModules: PatcherModuleNative[] = [
//new Log(),
new SendMessageHttp(),
]
nativeModules.forEach(async module => {
await module.initializeNativeModule();
});
console.log(`Finished Executing Il2cpp modules`);
});
}