aboutsummaryrefslogtreecommitdiff
path: root/src/tools/connection_patcher/Program.cpp
diff options
context:
space:
mode:
authorBernd Lörwald <bloerwald@googlemail.com>2014-11-08 17:16:37 +0100
committerBernd Lörwald <bloerwald@googlemail.com>2014-11-08 17:16:37 +0100
commit56d6891197bc8da27c5fb20489c79332818c543e (patch)
tree7456aaf94cba7c42c226efe377f59d84922eff64 /src/tools/connection_patcher/Program.cpp
parentefaf82a239c1b7581ea1c05ac1a04819eb463fa8 (diff)
Tools/ConnectionPatcher: add documentation on what is patched
Diffstat (limited to 'src/tools/connection_patcher/Program.cpp')
-rw-r--r--src/tools/connection_patcher/Program.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tools/connection_patcher/Program.cpp b/src/tools/connection_patcher/Program.cpp
index a613485f839..93bfc73051f 100644
--- a/src/tools/connection_patcher/Program.cpp
+++ b/src/tools/connection_patcher/Program.cpp
@@ -48,7 +48,9 @@ namespace Connection_Patcher
std::cout << "Patching module...\n";
Patcher patcher(file);
+
std::cout << "patching Password\n";
+ // if (Authentication::ServerSignature::ClientValidateProof(x)) to if (true)
patcher.Patch(PATCH::Password(), PATTERN::Password());
std::string const moduleName(Helper::GetFileChecksum(patcher.binary) + ".auth");
@@ -82,13 +84,24 @@ namespace Connection_Patcher
void do_patches(Patcher* patcher, boost::filesystem::path output)
{
std::cout << "patching Portal\n";
+ // '.logon.battle.net' -> '' to allow for set portal 'host'
patcher->Patch(Patches::Common::Portal(), Patterns::Common::Portal());
+
std::cout << "patching redirect RSA Modulus\n";
+ // public component of connection signing key to use known key pair
patcher->Patch(Patches::Common::Modulus(), Patterns::Common::Modulus());
+
std::cout << "patching BNet\n";
+ // hardcode 213.248.127.130 in IP6::Address::Address(IP4::Address::Address const&)
+ // used in Creep::Layer::Authentication::Online(), which overwrites GameStream::Connection::GetAddressRemote()
+ // to avoid CRYPT_SERVER_ADDRESS_IPV6 check in module
patcher->Patch(PATCH::BNet(), PATTERN::BNet());
+
std::cout << "patching Signature\n";
+ // if (Authentication::ModuleSignature::Validator::IsValid(x)) to if (true) in
+ // Creep::Instance::LoadModule() to allow for unsigned auth module
patcher->Patch(PATCH::Signature(), PATTERN::Signature());
+
patcher->Finish(output);
std::cout << "Patching done.\n";