From d606d196be68a1d72bcabb44a7a8cc4500847faa Mon Sep 17 00:00:00 2001 From: Zihad Date: Wed, 22 May 2024 22:20:50 +0600 Subject: [PATCH] update to 4.6.0 --- README.md | 2 +- src/marshal.rs | 2 +- src/modules/http.rs | 2 +- src/modules/security.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0808901..a62df8e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # hk4e-patch -Genshin Impact encryption patch (4.5.0) \ No newline at end of file +Genshin Impact encryption patch (4.6.0) \ No newline at end of file diff --git a/src/marshal.rs b/src/marshal.rs index 12fb4fa..b957213 100644 --- a/src/marshal.rs +++ b/src/marshal.rs @@ -2,7 +2,7 @@ use std::ffi::CStr; use crate::util; -const PTR_TO_STRING_ANSI: usize = 0xC61DB80; +const PTR_TO_STRING_ANSI: usize = 0xCF7CE50; type MarshalPtrToStringAnsi = unsafe extern "fastcall" fn(*const u8) -> *const u8; pub unsafe fn ptr_to_string_ansi(content: &CStr) -> *const u8 { diff --git a/src/modules/http.rs b/src/modules/http.rs index f7d9905..eca86ab 100644 --- a/src/modules/http.rs +++ b/src/modules/http.rs @@ -5,7 +5,7 @@ use crate::marshal; use anyhow::Result; use ilhook::x64::Registers; -const UNITY_WEB_REQUEST_SET_URL: usize = 0xCFC7FE0; +const UNITY_WEB_REQUEST_SET_URL: usize = 0xD9442D0; pub struct Http; diff --git a/src/modules/security.rs b/src/modules/security.rs index da475ce..fe45169 100644 --- a/src/modules/security.rs +++ b/src/modules/security.rs @@ -2,8 +2,8 @@ use super::{MhyContext, MhyModule, ModuleType}; use anyhow::Result; use ilhook::x64::Registers; -const IL2CPP_ARRAY_NEW: usize = 0x5432A0; -const KEY_SIGN_CHECK: usize = 0x4235; +const IL2CPP_ARRAY_NEW: usize = 0x553C10; +const KEY_SIGN_CHECK: usize = 0x41C5; const KEY_SIZE: u64 = 272; const KEY_PREFIX: u64 = 0x0D700010182020A01;