Files
BinaryObjectScanner/BurnOutSharp/ProtectionType/CenegaProtectDVD.cs

25 lines
752 B
C#
Raw Normal View History

2022-03-14 11:20:11 -07:00
using BurnOutSharp.ExecutableType.Microsoft.PE;
2022-05-01 17:41:50 -07:00
using BurnOutSharp.Interfaces;
2021-03-21 14:30:37 -07:00
namespace BurnOutSharp.ProtectionType
{
2022-05-01 17:17:15 -07:00
public class CengaProtectDVD : IPortableExecutableCheck
{
2021-02-26 01:26:49 -08:00
/// <inheritdoc/>
2022-05-01 17:17:15 -07:00
public string CheckPortableExecutable(string file, PortableExecutable pex, bool includeDebug)
{
// Get the sections from the executable, if possible
var sections = pex?.SectionTable;
if (sections == null)
return null;
2021-09-11 00:32:48 -07:00
// Get the .cenega section, if it exists
bool cenegaSection = pex.ContainsSection(".cenega", exact: true);
if (cenegaSection)
return "Cenega ProtectDVD";
return null;
}
}
}