mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-04-27 00:30:44 +00:00
41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using BinaryObjectScanner.Interfaces;
|
|
using SabreTools.Serialization.Wrappers;
|
|
|
|
namespace BinaryObjectScanner.Packer
|
|
{
|
|
// https://raw.githubusercontent.com/wolfram77web/app-peid/master/userdb.txt
|
|
public class WiseInstaller : IExecutableCheck<NewExecutable>, IExecutableCheck<PortableExecutable>
|
|
{
|
|
/// <inheritdoc/>
|
|
public string? CheckExecutable(string file, NewExecutable nex, bool includeDebug)
|
|
{
|
|
try
|
|
{
|
|
// If the overlay header can be found
|
|
if (nex.FindWiseOverlayHeader() > -1)
|
|
return "Wise Installation Wizard Module";
|
|
}
|
|
catch
|
|
{
|
|
// Ignore the error for now
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
public string? CheckExecutable(string file, PortableExecutable pex, bool includeDebug)
|
|
{
|
|
// If the overlay header can be found
|
|
if (pex.FindWiseOverlayHeader() > -1)
|
|
return "Wise Installation Wizard Module";
|
|
|
|
// If the section header can be found
|
|
if (pex.FindWiseSection() != null)
|
|
return "Wise Installation Wizard Module";
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|