mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-10 10:56:57 +00:00
26 lines
817 B
C#
26 lines
817 B
C#
using BinaryObjectScanner.Interfaces;
|
|
using SabreTools.Serialization.Wrappers;
|
|
|
|
namespace BinaryObjectScanner.Packer
|
|
{
|
|
// TODO: Add extraction
|
|
// https://raw.githubusercontent.com/wolfram77web/app-peid/master/userdb.txt
|
|
public class Shrinker : IExecutableCheck<PortableExecutable>
|
|
{
|
|
/// <inheritdoc/>
|
|
public string? CheckExecutable(string file, PortableExecutable exe, bool includeDebug)
|
|
{
|
|
// TODO: Figure out how to get version
|
|
|
|
if (exe.ContainsSection(".shrink0", exact: true))
|
|
return "Shrinker";
|
|
if (exe.ContainsSection(".shrink1", exact: true))
|
|
return "Shrinker";
|
|
if (exe.ContainsSection(".shrink2", exact: true))
|
|
return "Shrinker";
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|