mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-13 05:35:24 +00:00
20 lines
965 B
C#
20 lines
965 B
C#
using BurnOutSharp.ExecutableType.Microsoft;
|
|
|
|
namespace BurnOutSharp
|
|
{
|
|
// TODO: This should either include an override that takes a Stream instead of the byte[]
|
|
// OR have a completely separate check for when it's an executable specifically
|
|
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>
|
|
string CheckContents(string file, byte[] fileContent, bool includeDebug, PortableExecutable pex, NewExecutable nex);
|
|
}
|
|
}
|