2021-03-21 22:19:38 -07:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using BurnOutSharp.Matching;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BurnOutSharp.ProtectionType
|
2019-09-27 23:52:24 -07:00
|
|
|
|
{
|
2021-02-26 01:26:49 -08:00
|
|
|
|
public class ThreePLock : IContentCheck
|
2019-09-27 23:52:24 -07:00
|
|
|
|
{
|
2021-07-17 23:40:16 -07:00
|
|
|
|
/// <inheritdoc/>
|
2021-08-25 19:37:32 -07:00
|
|
|
|
public List<ContentMatchSet> GetContentMatchSets()
|
2019-09-27 23:52:24 -07:00
|
|
|
|
{
|
2021-08-25 19:37:32 -07:00
|
|
|
|
return new List<ContentMatchSet>
|
2020-10-30 17:02:58 -07:00
|
|
|
|
{
|
2021-07-17 23:40:16 -07:00
|
|
|
|
new ContentMatchSet(new List<byte?[]>
|
|
|
|
|
|
{
|
|
|
|
|
|
// .ldr
|
|
|
|
|
|
new byte?[] { 0x2E, 0x6C, 0x64, 0x72 },
|
2021-03-21 22:19:38 -07:00
|
|
|
|
|
2021-07-17 23:40:16 -07:00
|
|
|
|
// .ldt
|
|
|
|
|
|
new byte?[] { 0x2E, 0x6C, 0x64, 0x74 },
|
|
|
|
|
|
}, "3PLock"),
|
2020-09-10 21:10:32 -07:00
|
|
|
|
|
2021-07-17 23:40:16 -07:00
|
|
|
|
// This produced false positives in some DirectX 9.0c installer files
|
|
|
|
|
|
// "Y" + (char)0xC3 + "U" + (char)0x8B + (char)0xEC + (char)0x83 + (char)0xEC + "0SVW"
|
|
|
|
|
|
// new ContentMatchSet(new byte?[]
|
|
|
|
|
|
// {
|
|
|
|
|
|
// 0x59, 0xC3, 0x55, 0x8B, 0xEC, 0x83, 0xEC, 0x30,
|
|
|
|
|
|
// 0x53, 0x56, 0x57
|
|
|
|
|
|
// }, "3PLock"),
|
|
|
|
|
|
};
|
2021-08-25 19:37:32 -07:00
|
|
|
|
}
|
2020-09-10 21:10:32 -07:00
|
|
|
|
|
2021-08-25 19:37:32 -07:00
|
|
|
|
/// <inheritdoc/>
|
2021-08-25 20:26:43 -07:00
|
|
|
|
public string CheckContents(string file, byte[] fileContent, bool includeDebug = false) => null;
|
2019-09-27 23:52:24 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|