From 74c6aa06e0758655a8ca375d1c2d021a56da3e1d Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 14 Mar 2022 10:43:08 -0700 Subject: [PATCH] Add new interfaces --- BurnOutSharp/INEContentCheck.cs | 18 ++++++++++++++++++ BurnOutSharp/IPEContentCheck.cs | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 BurnOutSharp/INEContentCheck.cs create mode 100644 BurnOutSharp/IPEContentCheck.cs diff --git a/BurnOutSharp/INEContentCheck.cs b/BurnOutSharp/INEContentCheck.cs new file mode 100644 index 00000000..733a4466 --- /dev/null +++ b/BurnOutSharp/INEContentCheck.cs @@ -0,0 +1,18 @@ +using BurnOutSharp.ExecutableType.Microsoft.NE; + +namespace BurnOutSharp +{ + // TODO: This should either include an override that takes a Stream instead of the byte[] + internal interface INEContentCheck + { + /// + /// Check a path for protections based on file contents + /// + /// File to check for protection indicators + /// Byte array representing the file contents + /// True to include debug data, false otherwise + /// NewExecutable representing the read-in file + /// String containing any protections found in the file + string CheckNEContents(string file, byte[] fileContent, bool includeDebug, NewExecutable nex); + } +} diff --git a/BurnOutSharp/IPEContentCheck.cs b/BurnOutSharp/IPEContentCheck.cs new file mode 100644 index 00000000..812db3e0 --- /dev/null +++ b/BurnOutSharp/IPEContentCheck.cs @@ -0,0 +1,18 @@ +using BurnOutSharp.ExecutableType.Microsoft.PE; + +namespace BurnOutSharp +{ + // TODO: This should either include an override that takes a Stream instead of the byte[] + internal interface IPEContentCheck + { + /// + /// Check a path for protections based on file contents + /// + /// File to check for protection indicators + /// Byte array representing the file contents + /// True to include debug data, false otherwise + /// PortableExecutable representing the read-in file + /// String containing any protections found in the file + string CheckPEContents(string file, byte[] fileContent, bool includeDebug, PortableExecutable pex); + } +}