mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-13 05:35:24 +00:00
22 lines
1.1 KiB
C#
22 lines
1.1 KiB
C#
using BurnOutSharp.ExecutableType.Microsoft.NE;
|
|
using BurnOutSharp.ExecutableType.Microsoft.PE;
|
|
|
|
namespace BurnOutSharp
|
|
{
|
|
// TODO: This should either include an override that takes a Stream instead of the byte[]
|
|
// TODO: This should be retired in lieu of the I*ContentCheck interfaces
|
|
internal interface IContentCheck
|
|
{
|
|
/// <summary>
|
|
/// Check a path for protections based on file contents
|
|
/// </summary>
|
|
/// <param name="pex">PortableExecutable representing the read-in file</param>
|
|
/// <param name="file">File to check for protection indicators</param>
|
|
/// <param name="fileContent">Byte array representing the file contents</param>
|
|
/// <param name="includeDebug">True to include debug data, false otherwise</param>
|
|
/// <returns>String containing any protections found in the file</returns>
|
|
/// <remarks>This still includes PE and NE because this is primarily used for debug testing</remarks>
|
|
string CheckContents(string file, byte[] fileContent, bool includeDebug, PortableExecutable pex, NewExecutable nex);
|
|
}
|
|
}
|