2021-03-31 19:07:00 -07:00
using System.Collections.Generic ;
using BurnOutSharp.Matching ;
2021-08-25 15:09:42 -07:00
using BurnOutSharp.Tools ;
2021-03-31 19:07:00 -07:00
namespace BurnOutSharp.ProtectionType
{
public class CDKey : IContentCheck
{
/// <inheritdoc/>
2021-08-25 19:37:32 -07:00
public List < ContentMatchSet > GetContentMatchSets ( )
2021-03-31 19:07:00 -07:00
{
2021-08-25 19:37:32 -07:00
return new List < ContentMatchSet >
2021-07-17 23:40:16 -07:00
{
// I + (char)0x00 + n + (char)0x00 + t + (char)0x00 + e + (char)0x00 + r + (char)0x00 + n + (char)0x00 + a + (char)0x00 + l + (char)0x00 + N + (char)0x00 + a + (char)0x00 + m + (char)0x00 + e + (char)0x00 + + (char)0x00 + + (char)0x00 + C + (char)0x00 + D + (char)0x00 + K + (char)0x00 + e + (char)0x00 + y + (char)0x00
new ContentMatchSet ( new byte? [ ]
{
0x49 , 0x00 , 0x6E , 0x00 , 0x74 , 0x00 , 0x65 , 0x00 ,
0x72 , 0x00 , 0x6E , 0x00 , 0x61 , 0x00 , 0x6C , 0x00 ,
0x4E , 0x00 , 0x61 , 0x00 , 0x6D , 0x00 , 0x65 , 0x00 ,
0x00 , 0x00 , 0x43 , 0x00 , 0x44 , 0x00 , 0x4B , 0x00 ,
0x65 , 0x00 , 0x79 , 0x00
} , Utilities . GetFileVersion , "CD-Key / Serial" ) ,
} ;
2021-08-25 19:37:32 -07:00
}
2021-07-17 23:40:16 -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 ;
2021-03-31 19:07:00 -07:00
}
}