Add custom cdns file patch.

This commit is contained in:
Fabian König
2023-02-22 20:54:56 +00:00
parent 72cbda7747
commit fb3bd16580
3 changed files with 3 additions and 0 deletions

View File

@@ -153,6 +153,7 @@ class Launcher
memory.PatchMemory(Patterns.Common.Portal, Patches.Common.Portal, "Login Portal"),
memory.PatchMemory(Patterns.Common.VersionUrl, versionPatch, "Version URL"),
memory.PatchMemory(Patterns.Common.CdnsUrl, Patches.Common.CdnsUrl, "CDNs URL"),
memory.PatchMemory(Patterns.Windows.LauncherLogin, Patches.Windows.LauncherLogin, "Launcher Login Registry")
}, CancellationTokenSource.Token);

View File

@@ -44,6 +44,7 @@ static class Common
0x29, 0xEC, 0x36, 0x7F, 0xB0, 0xF3, 0x41, 0xF2, 0x8E, 0x0F, 0x08, 0xD0, 0x37, 0xBA, 0xFC, 0x69 };
public static byte[] GetVersionUrl(int build) => Encoding.UTF8.GetBytes($"ngdp.arctium.io/%s/%s/{build}/versions");
public static byte[] CdnsUrl => Encoding.UTF8.GetBytes("http://ngdp.arctium.io/customs/wow/cdns");
public static byte[] Portal = new byte[Patterns.Common.Portal.Length];
// Our own ca_bundle.txt.signed file.

View File

@@ -12,6 +12,7 @@ static class Common
public static short[] CertBundle = "{\"Created\":".ToPattern();
public static short[] VersionUrl = "%s.patch.battle.net:1119/%s/versions".ToPattern();
public static short[] CdnsUrl = "http://%s.patch.battle.net:1119/%s/cdns".ToPattern();
public static short[] Portal = ".actual.battle.net\0".ToPattern();
public static short[] CommandLineHelp = "World of Warcraft usage".ToPattern();
}