mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-31 21:19:22 +00:00
Separate protections into their own classes
This commit is contained in:
18
BurnOutSharp/ProtectionType/CodeLock.cs
Normal file
18
BurnOutSharp/ProtectionType/CodeLock.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace BurnOutSharp.ProtectionType
|
||||
{
|
||||
public class CodeLock
|
||||
{
|
||||
public static string CheckContents(string fileContent)
|
||||
{
|
||||
// TODO: Check if OR or AND
|
||||
if (fileContent.Contains("icd1" + (char)0x00)
|
||||
|| fileContent.Contains("icd2" + (char)0x00)
|
||||
|| fileContent.Contains("CODE-LOCK.OCX"))
|
||||
{
|
||||
return "Code Lock";
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user