mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-12 03:46:49 +00:00
Add IContentCheck interface
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
namespace BurnOutSharp.ProtectionType
|
||||
{
|
||||
public class CodeLock
|
||||
public class CodeLock : IContentCheck
|
||||
{
|
||||
// TODO: Verify if these are OR or AND
|
||||
public static string CheckContents(byte[] fileContent, bool includePosition = false)
|
||||
/// <inheritdoc/>
|
||||
public string CheckContents(string file, byte[] fileContent, bool includePosition = false)
|
||||
{
|
||||
// "icd1" + (char)0x00
|
||||
byte[] check = new byte[] { 0x69, 0x63, 0x64, 0x31, 0x00 };
|
||||
|
||||
Reference in New Issue
Block a user