Files
BinaryObjectScanner/BurnOutSharp/ProtectionType/SVKP.cs
Matt Nadareski 7dc5644d21 Add note to SVKP
2022-07-13 12:46:17 -07:00

25 lines
846 B
C#

using BurnOutSharp.ExecutableType.Microsoft.PE;
using BurnOutSharp.Interfaces;
namespace BurnOutSharp.ProtectionType
{
// TODO: Figure out how versions/version ranges work for this protection
// https://raw.githubusercontent.com/wolfram77web/app-peid/master/userdb.txt
public class SVKProtector : IPortableExecutableCheck
{
/// <inheritdoc/>
public string CheckPortableExecutable(string file, PortableExecutable pex, bool includeDebug)
{
// 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;
}
}
}