From eb76acb7675ab33c2e4531b1f4436736d2fee466 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Fri, 27 Aug 2021 13:13:41 -0700 Subject: [PATCH] Add note to MS-CAB SFX --- BurnOutSharp/PackerType/MicrosoftCABSFX.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/BurnOutSharp/PackerType/MicrosoftCABSFX.cs b/BurnOutSharp/PackerType/MicrosoftCABSFX.cs index 332908ed..5e1a845c 100644 --- a/BurnOutSharp/PackerType/MicrosoftCABSFX.cs +++ b/BurnOutSharp/PackerType/MicrosoftCABSFX.cs @@ -50,6 +50,19 @@ namespace BurnOutSharp.PackerType /// public string CheckContents(string file, byte[] fileContent, bool includeDebug = false) { + // Get the sections from the executable, if possible + // PortableExecutable pex = PortableExecutable.Deserialize(fileContent, 0); + // var sections = pex?.SectionTable; + // if (sections == null) + // return null; + + // TODO: Implement resource finding instead of using the built in methods + // Assembly information lives in the .rsrc section + // I need to find out how to navigate the resources in general + // as well as figure out the specific resources for both + // file info and MUI (XML) info. Once I figure this out, + // that also opens the doors to easier assembly XML checks. + var fvinfo = Utilities.GetFileVersionInfo(file); string name = fvinfo?.InternalName?.Trim();