From 2c72a4665a5ea810dc8e2be0ef58cf291aee308d Mon Sep 17 00:00:00 2001 From: Yaakov Date: Sun, 13 Jun 2021 16:07:42 +1000 Subject: [PATCH 1/2] Update NetHook2 send/recv signatures --- Resources/NetHook2/NetHook2/net.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Resources/NetHook2/NetHook2/net.cpp b/Resources/NetHook2/NetHook2/net.cpp index a17e09828..a5ff7e166 100644 --- a/Resources/NetHook2/NetHook2/net.cpp +++ b/Resources/NetHook2/NetHook2/net.cpp @@ -24,9 +24,9 @@ CNet::CNet() noexcept BBuildAndAsyncSendFrameFn pBuildFunc = nullptr; const bool bFoundBuildFunc = steamClientScan.FindFunction( - "\x55\x8B\xEC\x83\xEC\x74\xA1\x00\x00\x00\x00\x53\x8B\xD9\x89\x5D\xEC\x83\x38", - "xxxxxxx????xxxxxxxx", - (void **)&pBuildFunc + "\x55\x8B\xEC\x83\xEC\x70\xA1\x2A\x2A\x2A\x2A\x53", + "xxxxxxx????x", + (void**)&pBuildFunc ); BBuildAndAsyncSendFrame_Orig = pBuildFunc; @@ -35,9 +35,9 @@ CNet::CNet() noexcept RecvPktFn pRecvPktFunc = nullptr; const bool bFoundRecvPktFunc = steamClientScan.FindFunction( - "\x55\x8B\xEC\x81\xEC\xB8\x0D\x00\x00\xA1\x00\x00\x00\x00\x53\x56", - "xxxxxxxxxx????xx", - (void **)&pRecvPktFunc + "\x55\x8B\xEC\x81\xEC\xA8\x05\x00\x00\xA1", + "xxxxxxxxxx", + (void**)&pRecvPktFunc ); RecvPkt_Orig = pRecvPktFunc; From 5a8d13fcd11ce9d8ee1ff62c2fcff1ebebfbfb36 Mon Sep 17 00:00:00 2001 From: Yaakov Date: Mon, 14 Jun 2021 12:10:38 +1000 Subject: [PATCH 2/2] Update PchMsgNameFromEMsg signature --- Resources/NetHook2/NetHook2/crypto.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Resources/NetHook2/NetHook2/crypto.cpp b/Resources/NetHook2/NetHook2/crypto.cpp index a5659272b..c5eac1df6 100644 --- a/Resources/NetHook2/NetHook2/crypto.cpp +++ b/Resources/NetHook2/NetHook2/crypto.cpp @@ -39,10 +39,10 @@ CCrypto::CCrypto() noexcept g_pLogger->LogConsole( "CCrypto::SymmetricEncryptChosenIV = 0x%x\n", Encrypt_Orig ); - const bool bPchMsgNameFromEMsg = steamClientScan.FindFunction( - "\x55\x8B\xEC\xA1\x00\x00\x00\x00\x83\xEC\x08\xA8\x01\x75\x1F\x83\xC8\x01\xB9\x00\x00\x00\x00\xA3", - "xxxx????xxxxxxxxxxx????x", - (void **)&PchMsgNameFromEMsg + const bool bPchMsgNameFromEMsg = steamClientScan.FindFunction( + "\x55\x8B\xEC\x51\xA1\x00\x00\x00\x00\xA8\x01\x75\x1F", + "xxxxx????xxxx", + (void**)&PchMsgNameFromEMsg ); if (bPchMsgNameFromEMsg)