CNCB5.2.51
This commit is contained in:
parent
c78470e82b
commit
6014b2e099
5 changed files with 8 additions and 8 deletions
|
@ -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::<Http>::new(base));
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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<Misc> {
|
||||
unsafe fn init(&mut self) -> Result<()> {
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue