1
mirror of https://github.com/thepeacockproject/Peacock synced 2024-11-29 09:15:11 +01:00
Peacock/patcher/PatchDefinitions/v2_72.cs
Reece Dunham 6245e91624 Initial commit
Co-authored-by: Tino Roivanen <tino.roivanen98@gmail.com>
Co-authored-by: Govert de Gans <grappigegovert@hotmail.com>
Co-authored-by: Gray Olson <gray@grayolson.com>
Co-authored-by: Alexandre Sanchez <alex73630@gmail.com>
Co-authored-by: Anthony Fuller <24512050+anthonyfuller@users.noreply.github.com>
Co-authored-by: atampy25 <24306974+atampy25@users.noreply.github.com>
Co-authored-by: David <davidstulemeijer@gmail.com>
Co-authored-by: c0derMo <c0dermo@users.noreply.github.com>
Co-authored-by: Jeevat Singh <jeevatt.singh@gmail.com>
Signed-off-by: Reece Dunham <me@rdil.rocks>
2022-10-19 21:33:45 -04:00

90 lines
3.4 KiB
C#

namespace HitmanPatcher.PatchDefinitions
{
internal static class v2_72
{
internal static void AddVersions()
{
HitmanVersion.AddVersion("2.72.0.0-h4_dx11", 0x5EE9D065, v2_72_0_h4_dx11);
HitmanVersion.AddVersion("2.72.0.0-h4_dx12", 0x5EE9D095, v2_72_0_h4_dx12);
HitmanVersion.AddVersion("2.72.0.0-h5_dx11", 0x5F8D57CA, v2_72_0_h5_dx11);
HitmanVersion.AddVersion("2.72.0.0-h5_dx12", 0x5F8D56D3, v2_72_0_h5_dx12);
}
private static readonly HitmanVersion v2_72_0_h4_dx11 = new HitmanVersion()
{
certpin = new[]
{
new Patch(0x0F33363, "75", "EB", MemProtection.PAGE_EXECUTE_READ)
},
authheader = new[]
{
new Patch(0x0B5A1F8, "75", "EB", MemProtection.PAGE_EXECUTE_READ),
new Patch(0x0B5A21C, "0F8486000000", "909090909090", MemProtection.PAGE_EXECUTE_READ)
},
configdomain = new[]
{
new Patch(0x2BBBC08, "", "", MemProtection.PAGE_READWRITE, "configdomain")
},
protocol = new[]
{
new Patch(0x182D598, Patch.https, Patch.http, MemProtection.PAGE_READONLY),
new Patch(0x0B4ED64, "0C", "0B", MemProtection.PAGE_EXECUTE_READ)
},
dynres_noforceoffline = new[]
{
new Patch(0x2BBC548, "01", "00", MemProtection.PAGE_READWRITE)
}
};
private static readonly HitmanVersion v2_72_0_h4_dx12 = new HitmanVersion()
{
certpin = new[]
{
new Patch(0x0F32EC3, "75", "EB", MemProtection.PAGE_EXECUTE_READ)
},
authheader = new[]
{
new Patch(0x0B59D58, "75", "EB", MemProtection.PAGE_EXECUTE_READ),
new Patch(0x0B59D7C, "0F8486000000", "909090909090", MemProtection.PAGE_EXECUTE_READ)
},
configdomain = new[]
{
new Patch(0x2BDA208, "", "", MemProtection.PAGE_READWRITE, "configdomain")
},
protocol = new[]
{
new Patch(0x18486B8, Patch.https, Patch.http, MemProtection.PAGE_READONLY),
new Patch(0x0B4E8C4, "0C", "0B", MemProtection.PAGE_EXECUTE_READ)
},
dynres_noforceoffline = new[]
{
new Patch(0x2BDAB48, "01", "00", MemProtection.PAGE_EXECUTE_READWRITE)
}
};
private static readonly HitmanVersion v2_72_0_h5_dx11 = new HitmanVersion()
{
certpin = new[]
{
new Patch(0x0F32FAE, "0F85", "90E9", MemProtection.PAGE_EXECUTE_READ)
},
authheader = v2_72_0_h4_dx11.authheader,
configdomain = v2_72_0_h4_dx11.configdomain,
protocol = v2_72_0_h4_dx11.protocol,
dynres_noforceoffline = v2_72_0_h4_dx11.dynres_noforceoffline
};
private static readonly HitmanVersion v2_72_0_h5_dx12 = new HitmanVersion()
{
certpin = new[]
{
new Patch(0x0F32B0E, "0F85", "90E9", MemProtection.PAGE_EXECUTE_READ)
},
authheader = v2_72_0_h4_dx12.authheader,
configdomain = v2_72_0_h4_dx12.configdomain,
protocol = v2_72_0_h4_dx12.protocol,
dynres_noforceoffline = v2_72_0_h4_dx12.dynres_noforceoffline
};
}
}