From 6014b2e0998a23bd6470a754d1e84f01371c5e9d Mon Sep 17 00:00:00 2001 From: xeon Date: Fri, 29 Nov 2024 14:37:27 +0300 Subject: [PATCH] CNCB5.2.51 --- src/lib.rs | 2 +- src/marshal.rs | 2 +- src/modules/http.rs | 4 ++-- src/modules/misc.rs | 2 +- src/modules/security.rs | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 6c59968..6d75e1d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,7 +28,7 @@ unsafe fn thread_func() { util::disable_memprotect_guard(); Console::AllocConsole().unwrap(); - println!("Genshin Impact encryption patch\nMade by xeondev\nTo work with sakura-rs: git.xeondev.com/sakura-rs/sakura-rs"); + println!("Genshin Impact encryption patch\nMade by xeondev\nTo work with mavuika-rs: git.xeondev.com/mavuika-rs/mavuika-rs"); println!("Base: {:X}", base); module_manager.enable(MhyContext::::new(base)); diff --git a/src/marshal.rs b/src/marshal.rs index f1a72cb..42c2aba 100644 --- a/src/marshal.rs +++ b/src/marshal.rs @@ -2,7 +2,7 @@ use std::ffi::CStr; use windows::{core::PCSTR, Win32::System::LibraryLoader::GetModuleHandleA}; -const PTR_TO_STRING_ANSI: usize = 0xF85E020; +const PTR_TO_STRING_ANSI: usize = 0xFA8CBD0; 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 a44fd20..a92d89c 100644 --- a/src/modules/http.rs +++ b/src/modules/http.rs @@ -5,8 +5,8 @@ use crate::marshal; use anyhow::Result; use ilhook::x64::Registers; -const WEB_REQUEST_UTILS_MAKE_INITIAL_URL: usize = 0x10421E00; -const BROWSER_LOAD_URL: usize = 0x10222B20; +const WEB_REQUEST_UTILS_MAKE_INITIAL_URL: usize = 0x10660380; +const BROWSER_LOAD_URL: usize = 0x1048D9A0; pub struct Http; diff --git a/src/modules/misc.rs b/src/modules/misc.rs index bab72e6..ea9ef2e 100644 --- a/src/modules/misc.rs +++ b/src/modules/misc.rs @@ -4,7 +4,7 @@ use ilhook::x64::Registers; pub struct Misc; -const SET_CUSTOM_PROPERTY_FLOAT: usize = 0x12199F0; +const SET_CUSTOM_PROPERTY_FLOAT: usize = 0xF3EF50; impl MhyModule for MhyContext { unsafe fn init(&mut self) -> Result<()> { diff --git a/src/modules/security.rs b/src/modules/security.rs index ca8a974..0c38332 100644 --- a/src/modules/security.rs +++ b/src/modules/security.rs @@ -6,9 +6,9 @@ use super::{MhyContext, MhyModule, ModuleType}; use anyhow::Result; use ilhook::x64::Registers; -const MHYRSA_PERFORM_CRYPTO_ACTION: usize = 0x95ED88; -const KEY_SIGN_CHECK: usize = 0x960C7C; -const SDK_UTIL_RSA_ENCRYPT: usize = 0xFC0CC30; +const MHYRSA_PERFORM_CRYPTO_ACTION: usize = 0x46C788; +const KEY_SIGN_CHECK: usize = 0x46E67C; +const SDK_UTIL_RSA_ENCRYPT: usize = 0xFE733C0; const KEY_SIZE: usize = 268; static SERVER_PUBLIC_KEY: &[u8] = include_bytes!("../../server_public_key.bin");