mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-13 13:45:57 +00:00
26 lines
1.1 KiB
C#
26 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using BurnOutSharp.Matching;
|
|
|
|
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>
|
|
/// Get a list of content match sets that represent a protection
|
|
/// </summary>
|
|
/// <returns>List of content match sets, null if not applicable</returns>
|
|
List<ContentMatchSet> GetContentMatchSets();
|
|
|
|
/// <summary>
|
|
/// Check a path for protections based on file contents
|
|
/// </summary>
|
|
/// <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);
|
|
}
|
|
}
|