From a42328ef60f06a0ddf48804dd85baa2ea63f3011 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 5 Oct 2025 17:26:01 -0400 Subject: [PATCH] Update Serialization to 2.0.1 --- BinaryObjectScanner.Test/BinaryObjectScanner.Test.csproj | 2 +- BinaryObjectScanner/BinaryObjectScanner.csproj | 2 +- BinaryObjectScanner/Packer/EmbeddedFile.cs | 6 +++--- ProtectionScan/ProtectionScan.csproj | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/BinaryObjectScanner.Test/BinaryObjectScanner.Test.csproj b/BinaryObjectScanner.Test/BinaryObjectScanner.Test.csproj index 8ae11c47..5535ec6d 100644 --- a/BinaryObjectScanner.Test/BinaryObjectScanner.Test.csproj +++ b/BinaryObjectScanner.Test/BinaryObjectScanner.Test.csproj @@ -17,7 +17,7 @@ all - + runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/BinaryObjectScanner/BinaryObjectScanner.csproj b/BinaryObjectScanner/BinaryObjectScanner.csproj index d151d970..dc80c03d 100644 --- a/BinaryObjectScanner/BinaryObjectScanner.csproj +++ b/BinaryObjectScanner/BinaryObjectScanner.csproj @@ -48,7 +48,7 @@ - + diff --git a/BinaryObjectScanner/Packer/EmbeddedFile.cs b/BinaryObjectScanner/Packer/EmbeddedFile.cs index 8d892772..7c8f200c 100644 --- a/BinaryObjectScanner/Packer/EmbeddedFile.cs +++ b/BinaryObjectScanner/Packer/EmbeddedFile.cs @@ -78,7 +78,7 @@ namespace BinaryObjectScanner.Packer { embeddedTypes.Add("Embedded UHARC Archive"); } - else if (overlaySample.StartsWith(SabreTools.Data.Models.XZ.Constants.SignatureBytes)) + else if (overlaySample.StartsWith(SabreTools.Data.Models.XZ.Constants.HeaderSignatureBytes)) { embeddedTypes.Add("Embedded XZ Archive"); } @@ -152,7 +152,7 @@ namespace BinaryObjectScanner.Packer embeddedTypes.Add("Embedded RAR Archive"); else if (resourceSample.StartsWith([0x55, 0x48, 0x41, 0x06])) embeddedTypes.Add("Embedded UHARC Archive"); - else if (resourceSample.StartsWith(SabreTools.Data.Models.XZ.Constants.SignatureBytes)) + else if (resourceSample.StartsWith(SabreTools.Data.Models.XZ.Constants.HeaderSignatureBytes)) embeddedTypes.Add("Embedded XZ Archive"); else if (resourceSample.StartsWith(SabreTools.Data.Models.MSDOS.Constants.SignatureBytes)) embeddedTypes.Add("Embedded Executable"); @@ -229,7 +229,7 @@ namespace BinaryObjectScanner.Packer { embeddedTypes.Add("Embedded Executable"); } - else if (overlaySample.StartsWith(SabreTools.Data.Models.XZ.Constants.SignatureBytes)) + else if (overlaySample.StartsWith(SabreTools.Data.Models.XZ.Constants.HeaderSignatureBytes)) { // 7-zip SFX script -- ";!@Install" to ";!@InstallEnd@!" overlayOffset = exe.OverlayData.FirstPosition([0x3B, 0x21, 0x40, 0x49, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x45, 0x6E, 0x64, 0x40, 0x21]); diff --git a/ProtectionScan/ProtectionScan.csproj b/ProtectionScan/ProtectionScan.csproj index 056611c0..ea56306d 100644 --- a/ProtectionScan/ProtectionScan.csproj +++ b/ProtectionScan/ProtectionScan.csproj @@ -32,7 +32,7 @@ - + \ No newline at end of file