44 lines
1.3 KiB
Diff
44 lines
1.3 KiB
Diff
From 0874adb5e0e53d90da56e542053b9f14adccfb1a Mon Sep 17 00:00:00 2001
|
|
From: hluwa <hluwa888@gmail.com>
|
|
Date: Mon, 16 Aug 2021 10:55:11 +0800
|
|
Subject: [PATCH 1/8] strongR-frida: string_frida_rpc
|
|
|
|
---
|
|
lib/base/rpc.vala | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/lib/base/rpc.vala b/lib/base/rpc.vala
|
|
index 3695ba8c..02602abf 100644
|
|
--- a/lib/base/rpc.vala
|
|
+++ b/lib/base/rpc.vala
|
|
@@ -17,7 +17,7 @@ namespace Frida {
|
|
var request = new Json.Builder ();
|
|
request
|
|
.begin_array ()
|
|
- .add_string_value ("frida:rpc")
|
|
+ .add_string_value ((string) GLib.Base64.decode("ZnJpZGE6cnBj="))
|
|
.add_string_value (request_id)
|
|
.add_string_value ("call")
|
|
.add_string_value (method)
|
|
@@ -70,7 +70,7 @@ namespace Frida {
|
|
}
|
|
|
|
public bool try_handle_message (string json) {
|
|
- if (json.index_of ("\"frida:rpc\"") == -1)
|
|
+ if (json.index_of ((string) GLib.Base64.decode("ImZyaWRhOnJwYyI=")) == -1)
|
|
return false;
|
|
|
|
var parser = new Json.Parser ();
|
|
@@ -99,7 +99,7 @@ namespace Frida {
|
|
return false;
|
|
|
|
string? type = rpc_message.get_element (0).get_string ();
|
|
- if (type == null || type != "frida:rpc")
|
|
+ if (type == null || type != (string) GLib.Base64.decode("ZnJpZGE6cnBj="))
|
|
return false;
|
|
|
|
var request_id_value = rpc_message.get_element (1);
|
|
--
|
|
2.30.2
|
|
|