From 6202ee5d5c950f6d227f554679f3e41fa5f40106 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 11 Jul 2022 16:10:52 -0700 Subject: [PATCH] Print sections during debug --- BurnOutSharp/FileType/Executable.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BurnOutSharp/FileType/Executable.cs b/BurnOutSharp/FileType/Executable.cs index 8737ec16..78197583 100644 --- a/BurnOutSharp/FileType/Executable.cs +++ b/BurnOutSharp/FileType/Executable.cs @@ -139,6 +139,10 @@ namespace BurnOutSharp.FileType // If we have a PE executable, iterate through all PE content checks if (pex?.Initialized == true) { + // Print the section table for debug + if (scanner.IncludeDebug && pex.SectionTable != null) + pex.PrintAllSections(); + Parallel.ForEach(ScanningClasses.PortableExecutableCheckClasses, contentCheckClass => { // Check using custom content checks first