From fa67d370c0cd0c73353490e5e678fd4092548cc8 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 7 Sep 2025 11:00:55 -0400 Subject: [PATCH] Add GkWare SFX detection (fixes #97) --- BinaryObjectScanner/Packer/GkWareSFX.cs | 27 +++++++++++++++++++++++++ README.md | 1 + 2 files changed, 28 insertions(+) create mode 100644 BinaryObjectScanner/Packer/GkWareSFX.cs diff --git a/BinaryObjectScanner/Packer/GkWareSFX.cs b/BinaryObjectScanner/Packer/GkWareSFX.cs new file mode 100644 index 00000000..4adbb6a4 --- /dev/null +++ b/BinaryObjectScanner/Packer/GkWareSFX.cs @@ -0,0 +1,27 @@ +using BinaryObjectScanner.Interfaces; +using SabreTools.Serialization.Wrappers; + +namespace BinaryObjectScanner.Packer +{ + /// + /// GkWare Self-Extracting installer + /// + public class GkWareSFX : IExecutableCheck + { + /// + public string? CheckExecutable(string file, PortableExecutable pex, bool includeDebug) + { + // + var name = pex.FileDescription; + if (name.OptionalContains("GkWare Self extractor")) + return "GkWare SFX"; + + // + name = pex.ProductName; + if (name.OptionalContains("GkWare Self extractor")) + return "GkWare SFX"; + + return null; + } + } +} diff --git a/README.md b/README.md index 21fcdbae..d9f8f4c4 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,7 @@ Below is a list of executable packers detected by BinaryObjectScanner. The three | Embedded File | Yes | No | Yes | Not technically a packer | | EXE Stealth | Yes | No | No | | | Gentee Installer | Yes | No | No | | +| GkWare SFX | Yes | No | No | | | HyperTech CrackProof | Yes | No | No | | | Inno Setup | Yes | No | No | | | InstallAnywhere | Yes | No | No | |