From 2084124420a3d11b9518df6ad4d24b6ba3cd3895 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 29 Sep 2019 18:33:42 +0200 Subject: [PATCH] Tools/Patcher: add Windows x64 patterns --- src/server/bnetserver/Server/Session.cpp | 1 + src/tools/connection_patcher/Patterns/Windows.hpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server/bnetserver/Server/Session.cpp b/src/server/bnetserver/Server/Session.cpp index 4da0037fd5..cad79ebd6b 100644 --- a/src/server/bnetserver/Server/Session.cpp +++ b/src/server/bnetserver/Server/Session.cpp @@ -497,6 +497,7 @@ void Battlenet::Session::HandleJoinRequestV2(WoWRealm::JoinRequestV2 const& join hmac2.Finalize(); memcpy(sessionKey + hmac.GetLength(), hmac2.GetDigest(), hmac2.GetLength()); + printf("OS = %s \n", _os.c_str()); PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_UPD_LOGONPROOF); stmt->setString(0, ByteArrayToHexStr(sessionKey, 40, true).c_str()); diff --git a/src/tools/connection_patcher/Patterns/Windows.hpp b/src/tools/connection_patcher/Patterns/Windows.hpp index 3c1b6c706f..11d5d05595 100644 --- a/src/tools/connection_patcher/Patterns/Windows.hpp +++ b/src/tools/connection_patcher/Patterns/Windows.hpp @@ -36,9 +36,9 @@ namespace Connection_Patcher struct x64 { - static const std::vector BNet() { return { 0x8B, 0x02, 0x89, 0x41, 0x0C, 0x48, 0x8B, 0xC1, 0xC3 }; } + static const std::vector BNet() { return { 0x8B, 0x02, 0x89, 0x41, 0x0C, 0x48, 0x8B, 0xC1, 0xC3, 0xCC, 0xCC, 0xCC }; } static const std::vector Password() { return { 0x74, 0x84, 0x48, 0x8B, 0x03 }; } - static const std::vector Signature() { return { 0xE8, 0x00, 0x00, 0x00, 0x00, 0x84, 0xC0, 0x0F, 0x85, 0x88, 0x00, 0x00, 0x00, 0x45, 0x33, 0xC0 }; } + static const std::vector Signature() { return { 0xE8, 0x00, 0x00, 0x00, 0x00, 0x84, 0xC0, 0x0F, 0x85, 0x00, 0x00, 0x00, 0x00, 0x45, 0x33, 0xC0 }; } }; }; }