-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
31 lines (21 loc) · 1.72 KB
/
index.ts
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
import "frida-il2cpp-bridge";
Il2Cpp.perform(() => {
const neptune = Il2Cpp.domain.assembly("Neptune.Core").image;
const ntcore = neptune.class("NTCore.CommonAPI")
const requestClass = ntcore.nested("__Observable")
const getDomain = ntcore.method("GetDomainURL");
// modify this to the server you are redirecting to
const SERVER_URL = "http://localhost:5000"
// dump of it
// static System.IObservable<LitJson.JsonData> RequestAsObservable(System.String serverAddr, System.String act, NTBase.HttpRequestParam param, NTBase.WebData webData, System.Func<NTBase.WebData,NTBase.WebData> preprocessor, System.Func<NTCore.HttpResponse,System.String> postprocessor); // 0x00d2ab84
const requestRedirect = requestClass.method("RequestAsObservable").overload("System.String", "System.String", "NTBase.HttpRequestParam", "NTBase.WebData", "System.Func<NTBase.WebData,NTBase.WebData>", "System.Func<NTCore.HttpResponse,System.String>");
getDomain.implementation = function (keyName: Il2Cpp.String) : any {
const result = this.method("GetDomainURL").invoke(keyName);
return Il2Cpp.string(SERVER_URL)
}
requestRedirect.implementation = function (serverAddr: Il2Cpp.String, act: Il2Cpp.String, param: Il2Cpp.Parameter, webData: Il2Cpp.Object, preprocessor: any, postprocessor: any) : any {
serverAddr = Il2Cpp.string(SERVER_URL);
const result = this.method("RequestAsObservable").overload("System.String", "System.String", "NTBase.HttpRequestParam", "NTBase.WebData", "System.Func<NTBase.WebData,NTBase.WebData>", "System.Func<NTCore.HttpResponse,System.String>").invoke(serverAddr, act, param, webData, preprocessor, postprocessor);
return result;
}
});