mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-11 05:35:15 +00:00
23 lines
749 B
C#
23 lines
749 B
C#
using BurnOutSharp.ExecutableType.Microsoft;
|
|
|
|
namespace BurnOutSharp.ProtectionType
|
|
{
|
|
// TODO: Figure out how versions/version ranges work for this protection
|
|
public class SVKProtector : IContentCheck
|
|
{
|
|
/// <inheritdoc/>
|
|
public string CheckContents(string file, byte[] fileContent, bool includeDebug, PortableExecutable pex, NewExecutable nex)
|
|
{
|
|
// Get the image file header from the executable, if possible
|
|
if (pex?.ImageFileHeader == null)
|
|
return null;
|
|
|
|
// 0x504B5653 is "SVKP"
|
|
if (pex.ImageFileHeader.PointerToSymbolTable == 0x504B5653)
|
|
return "SVKP (Slovak Protector)";
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|