1
0
mirror of synced 2024-11-24 15:10:16 +01:00
This commit is contained in:
esuo1198 2023-09-27 09:46:22 +09:00
parent 9fe8f9d2d8
commit 6df8b9f824

View File

@ -20,9 +20,10 @@ HOOK (i32, HaspRead, PROC_ADDRESS ("hasp_windows_x64.dll", "hasp_read"), i32, i3
return 0;
}
void (__fastcall* lua_touserdata) (i64 L, i64 index);
void (__fastcall* lua_settop) (i64 L, i64 index);
void (__fastcall* lua_pushboolean) (i64 L, i64 b);
typedef i64 (__fastcall* lua_func) (u64, u64);
lua_func lua_touserdata;
lua_func lua_settop;
lua_func lua_pushboolean;
HOOK (i64, sub_1401AC550, ASLR (0x1401AC550), i64 a1) {
lua_touserdata (a1, 4294957292);
@ -95,9 +96,9 @@ Init () {
// Disable SSLVerify
WRITE_MEMORY (ASLR (0x14034C182), u8, 0x00);
lua_touserdata = reinterpret_cast<void ((__fastcall*)(i64, i64))> (PROC_ADDRESS ("lua51.dll", "lua_touserdata"));
lua_settop = reinterpret_cast<void ((__fastcall*)(i64, i64))> (PROC_ADDRESS ("lua51.dll", "lua_settop"));
lua_pushboolean = reinterpret_cast<void ((__fastcall*)(i64, i64))> (PROC_ADDRESS ("lua51.dll", "lua_pushboolean"));
lua_touserdata = (lua_func) PROC_ADDRESS ("lua51.dll", "lua_touserdata");
lua_settop = (lua_func) PROC_ADDRESS ("lua51.dll", "lua_settop");
lua_pushboolean = (lua_func) PROC_ADDRESS ("lua51.dll", "lua_pushboolean");
INSTALL_HOOK (sub_1401AC550);