From 7f2de233fcb5900783b23ece0243fd89eab9f1e6 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Fri, 4 Nov 2022 21:05:03 -0700 Subject: [PATCH] Add PE skeleton, change MZ stubs --- BurnOutSharp.Models/BurnOutSharp.Models.csproj | 4 ---- .../LinearExecutable/Executable.cs | 4 ++-- BurnOutSharp.Models/NewExecutable/Executable.cs | 4 ++-- .../PortableExecutable/Executable.cs | 17 +++++++++++++++++ 4 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 BurnOutSharp.Models/PortableExecutable/Executable.cs diff --git a/BurnOutSharp.Models/BurnOutSharp.Models.csproj b/BurnOutSharp.Models/BurnOutSharp.Models.csproj index 8ea8571a..f16cbbf5 100644 --- a/BurnOutSharp.Models/BurnOutSharp.Models.csproj +++ b/BurnOutSharp.Models/BurnOutSharp.Models.csproj @@ -20,8 +20,4 @@ true - - - - diff --git a/BurnOutSharp.Models/LinearExecutable/Executable.cs b/BurnOutSharp.Models/LinearExecutable/Executable.cs index e9382f07..0d641812 100644 --- a/BurnOutSharp.Models/LinearExecutable/Executable.cs +++ b/BurnOutSharp.Models/LinearExecutable/Executable.cs @@ -11,9 +11,9 @@ namespace BurnOutSharp.Models.LinearExecutable public class Executable { /// - /// MS-DOS executable header + /// MS-DOS executable stub /// - public MSDOS.ExecutableHeader Stub { get; set; } + public MSDOS.Executable Stub { get; set; } /// /// Information block diff --git a/BurnOutSharp.Models/NewExecutable/Executable.cs b/BurnOutSharp.Models/NewExecutable/Executable.cs index 88e6f178..ef09e066 100644 --- a/BurnOutSharp.Models/NewExecutable/Executable.cs +++ b/BurnOutSharp.Models/NewExecutable/Executable.cs @@ -12,9 +12,9 @@ namespace BurnOutSharp.Models.NewExecutable public class Executable { /// - /// MS-DOS executable header + /// MS-DOS executable stub /// - public MSDOS.ExecutableHeader Stub { get; set; } + public MSDOS.Executable Stub { get; set; } /// /// New Executable header diff --git a/BurnOutSharp.Models/PortableExecutable/Executable.cs b/BurnOutSharp.Models/PortableExecutable/Executable.cs new file mode 100644 index 00000000..390c4679 --- /dev/null +++ b/BurnOutSharp.Models/PortableExecutable/Executable.cs @@ -0,0 +1,17 @@ +namespace BurnOutSharp.Models.PortableExecutable +{ + /// + /// The following list describes the Microsoft PE executable format, with the + /// base of the image header at the top. The section from the MS-DOS 2.0 + /// Compatible EXE Header through to the unused section just before the PE header + /// is the MS-DOS 2.0 Section, and is used for MS-DOS compatibility only. + /// + /// + public class Executable + { + /// + /// MS-DOS executable stub + /// + public MSDOS.Executable Stub { get; set; } + } +}