Skip to content

Commit

Permalink
Merge pull request #996 from SteamRE/nethook2-994
Browse files Browse the repository at this point in the history
Update NetHook2 send/recv signatures
  • Loading branch information
yaakov-h authored Jun 14, 2021
2 parents d85432f + 5a8d13f commit 9e5f746
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Resources/NetHook2/NetHook2/crypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
12 changes: 6 additions & 6 deletions Resources/NetHook2/NetHook2/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 9e5f746

Please sign in to comment.