2023-03-07 16:59:14 -05:00
|
|
|
|
using BinaryObjectScanner.Wrappers;
|
2022-11-05 23:42:55 -07:00
|
|
|
|
|
2023-03-09 11:52:28 -05:00
|
|
|
|
namespace BinaryObjectScanner.Interfaces
|
2022-11-05 23:42:55 -07:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Check a Linear Executable (LE) for protection
|
|
|
|
|
|
/// </summary>
|
2022-12-26 12:36:09 -08:00
|
|
|
|
public interface ILinearExecutableCheck
|
2022-11-05 23:42:55 -07:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Check a path for protections based on file contents
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="file">File to check for protection indicators</param>
|
|
|
|
|
|
/// <param name="lex">LinearExecutable representing the read-in file</param>
|
|
|
|
|
|
/// <param name="includeDebug">True to include debug data, false otherwise</param>
|
|
|
|
|
|
/// <returns>String containing any protections found in the file</returns>
|
2023-03-09 23:19:27 -05:00
|
|
|
|
string CheckLinearExecutable(string file, LinearExecutable lex, bool includeDebug);
|
2022-11-05 23:42:55 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|