add frida http

This commit is contained in:
yincong
2025-12-30 12:17:41 +08:00
parent e5be321b4a
commit d4bd385ea3
7 changed files with 550 additions and 59 deletions
+6 -7
View File
@@ -160,16 +160,16 @@ function setTriggerAttach() {
setImmediate(setTriggerAttach);
function manualTrigger(taskId, receiver, content) {
function manualTrigger(taskId, receiver, content) {
console.log("[*] Manual Trigger Started...");
if (globalMessagePtr.isNull()) {
console.log("[!] globalMessagePtr is NULL, cannot trigger!");
return;
return false;
}
if (!taskId || !receiver || !content) {
console.log("[!] taskId or Receiver or Content is empty!");
return;
return false;
}
// 获取当前时间戳 (秒)
@@ -177,7 +177,7 @@ function manualTrigger(taskId, receiver, content) {
// 全局变量不为空,并且上次发送时间小于1s,不给发送
if ((taskIdGlobal !== 0 || receiverGlobal !== "" || contentGlobal !== "") && lastSendTime + 1 > timestamp) {
console.log("[!] taskId or receiver or content is not empty!");
return;
return false;
}
lastSendTime = timestamp
@@ -255,14 +255,13 @@ function manualTrigger(taskId, receiver, content) {
try {
const arg1 = globalMessagePtr; // 第一个指针参数
const arg2 = triggerX1Payload; // 第二个参数 0x175ED6600
console.log(`[*] Calling trigger function at ${triggerFuncAddr} with args: (${arg1}, ${arg2})`);
const result = sub_10444A99C(arg1, arg2);
console.log("[+] Execution trigger function Success. Return value: " + result);
return true;
} catch (e) {
console.log("[!] Error trigger function during execution: " + e);
return false;
}
}