Fix inconsistency in interface implementations

This commit is contained in:
Matt Nadareski
2025-09-07 11:15:26 -04:00
parent bef5749b5e
commit 4b697c7d20
198 changed files with 1330 additions and 1330 deletions

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.GameEngine
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new RenderWare();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new ASPack();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new AdvancedInstaller();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new AutoPlayMediaStudio();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new CExe();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Crunch();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new DotFuscator();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new DotNetReactor();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -23,10 +23,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new EXEStealth();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new EmbeddedFile();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new GenteeInstaller();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new HyperTechCrackProof();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.NewExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.NewExecutable nex = new(model, source);
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
var checker = new InnoSetup();
string? actual = checker.CheckExecutable(file, nex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
@@ -25,10 +25,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new InnoSetup();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new InstallAnywhere();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new InstallerVISE();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new IntelInstallationFramework();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new MicrosoftCABSFX();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new NSIS();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new NeoLite();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new PECompact();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new PEtite();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new SetupFactory();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new SevenZipSFX();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Shrinker();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new UPX();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new WinRARSFX();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.NewExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.NewExecutable nex = new(model, source);
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
var checker = new WinZipSFX();
string? actual = checker.CheckExecutable(file, nex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
@@ -25,10 +25,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new WinZipSFX();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.NewExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.NewExecutable nex = new(model, source);
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
var checker = new WiseInstaller();
string? actual = checker.CheckExecutable(file, nex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
@@ -25,10 +25,10 @@ namespace BinaryObjectScanner.Test.Packer
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new WiseInstaller();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -23,10 +23,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new ActiveMARK();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new AegiSoft();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new AlphaROM();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Armadillo();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new ByteShield();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new CDCheck();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.NewExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.NewExecutable nex = new(model, source);
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
var checker = new CDDVDCops();
string? actual = checker.CheckExecutable(file, nex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
@@ -26,10 +26,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new CDDVDCops();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new CDGuard();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new CDKey();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new CDLock();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new CDSHiELDSE();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new CenegaProtectDVD();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Channelware();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new ChosenBytesCodeLock();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new CopyKiller();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new CopyLok();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new CopyX();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new CrypKey();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Cucko();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Denuvo();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new DigiGuard();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new DiscGuard();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new EAAntiCheat();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new EasyAntiCheat();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new ElectronicArts();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Engine32();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new GFWL();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Gefest();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new HexalockAutoLock();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new ImpulseReactor();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Intenium();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new InterLok();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new JoWood();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new KalypsoLauncher();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new LabelGate();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new LaserLok();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new MGIRegistration();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.NewExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.NewExecutable nex = new(model, source);
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
var checker = new Macrovision();
string? actual = checker.CheckExecutable(file, nex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
@@ -26,10 +26,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Macrovision();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new MediaCloQ();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new MediaMax();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new NEACProtect();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new NProtect();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new OnlineRegistration();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new OpenMG();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Origin();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new PlayJ();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new ProtectDISC();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.NewExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.NewExecutable nex = new(model, source);
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
var checker = new RainbowSentinel();
string? actual = checker.CheckExecutable(file, nex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
@@ -26,10 +26,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new RainbowSentinel();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new RealArcade();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Roxxe();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new SVKProtector();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new SecuROM();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new SmartE();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new SoftLock();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new SolidShield();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new StarForce();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Steam();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Sysiphus();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new TAGES();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Themida();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new ThreePLock();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -12,10 +12,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new ThreeTwoOneStudios();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new Uplay();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new WMDS();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new WTMCDProtect();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -13,10 +13,10 @@ namespace BinaryObjectScanner.Test.Protection
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream();
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new XCP();
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}

View File

@@ -18,12 +18,12 @@ namespace BinaryObjectScanner.GameEngine
public class RenderWare : IExecutableCheck<PortableExecutable>
{
/// <inheritdoc/>
public string? CheckExecutable(string file, PortableExecutable pex, bool includeDebug)
public string? CheckExecutable(string file, PortableExecutable exe, bool includeDebug)
{
// Found in Redump entries 20138, 55823, and 102493.
bool rwcsegSection = pex.ContainsSection("_rwcseg", exact: true);
bool rwcsegSection = exe.ContainsSection("_rwcseg", exact: true);
// Found in Redump entry 20138.
bool rwdsegSection = pex.ContainsSection("_rwdseg", exact: true);
bool rwdsegSection = exe.ContainsSection("_rwdseg", exact: true);
// TODO: Check if this indicates a specific version, or if these sections are present in multiple.
if (rwcsegSection || rwdsegSection)

View File

@@ -11,23 +11,23 @@ namespace BinaryObjectScanner.Packer
public class ASPack : IExecutableCheck<PortableExecutable>
{
/// <inheritdoc/>
public string? CheckExecutable(string file, PortableExecutable pex, bool includeDebug)
public string? CheckExecutable(string file, PortableExecutable exe, bool includeDebug)
{
// Get the .aspack section, if it exists
if (pex.ContainsSection(".aspack", exact: true))
if (exe.ContainsSection(".aspack", exact: true))
return "ASPack 2.29";
// Use the entry point data, if it exists
if (pex.EntryPointData != null)
if (exe.EntryPointData != null)
{
var matchers = GenerateMatchers();
var match = MatchUtil.GetFirstMatch(file, pex.EntryPointData, matchers, includeDebug);
var match = MatchUtil.GetFirstMatch(file, exe.EntryPointData, matchers, includeDebug);
if (!string.IsNullOrEmpty(match))
return match;
}
// Get the .adata* section, if it exists
var adataSectionRaw = pex.GetFirstSectionData(".adata", exact: false);
var adataSectionRaw = exe.GetFirstSectionData(".adata", exact: false);
if (adataSectionRaw != null)
{
var matchers = GenerateMatchers();
@@ -37,7 +37,7 @@ namespace BinaryObjectScanner.Packer
}
// Get the .data/DATA section, if it exists
var dataSectionRaw = pex.GetFirstSectionData(".data") ?? pex.GetFirstSectionData("DATA");
var dataSectionRaw = exe.GetFirstSectionData(".data") ?? exe.GetFirstSectionData("DATA");
if (dataSectionRaw != null)
{
var matchers = GenerateMatchers();

View File

@@ -8,10 +8,10 @@ namespace BinaryObjectScanner.Packer
public class AdvancedInstaller : IExecutableCheck<PortableExecutable>
{
/// <inheritdoc/>
public string? CheckExecutable(string file, PortableExecutable pex, bool includeDebug)
public string? CheckExecutable(string file, PortableExecutable exe, bool includeDebug)
{
// Get the .rdata section strings, if they exist
var strs = pex.GetFirstSectionStrings(".rdata");
var strs = exe.GetFirstSectionStrings(".rdata");
if (strs != null)
{
if (strs.Exists(s => s.Contains("Software\\Caphyon\\Advanced Installer")))

View File

@@ -10,30 +10,30 @@ namespace BinaryObjectScanner.Packer
public class AutoPlayMediaStudio : IExecutableCheck<PortableExecutable>
{
/// <inheritdoc/>
public string? CheckExecutable(string file, PortableExecutable pex, bool includeDebug)
public string? CheckExecutable(string file, PortableExecutable exe, bool includeDebug)
{
// Known to detect versions 5.0.0.3 - 8.1.0.0
var name = pex.ProductName;
var name = exe.ProductName;
if (name.OptionalStartsWith("AutoPlay Media Studio", StringComparison.OrdinalIgnoreCase))
return $"AutoPlay Media Studio {GetVersion(pex)}";
return $"AutoPlay Media Studio {GetVersion(exe)}";
// TODO: Currently too vague, may be re-enabled in the future
// name = Utilities.GetLegalCopyright(pex);
// name = Utilities.GetLegalCopyright(exe);
// if (name.OptionalStartsWith("Runtime Engine", StringComparison.OrdinalIgnoreCase))
// return $"AutoPlay Media Studio {GetVersion(pex)}";
// return $"AutoPlay Media Studio {GetVersion(exe)}";
return null;
}
private static string GetVersion(PortableExecutable pex)
private static string GetVersion(PortableExecutable exe)
{
// Check the product version explicitly
var version = pex.ProductVersion;
var version = exe.ProductVersion;
if (!string.IsNullOrEmpty(version))
return version!;
// Check the internal versions
version = pex.GetInternalVersion();
version = exe.GetInternalVersion();
if (!string.IsNullOrEmpty(version))
return version!;

View File

@@ -12,13 +12,13 @@ namespace BinaryObjectScanner.Packer
public class CExe : IExecutableCheck<PortableExecutable>
{
/// <inheritdoc/>
public string? CheckExecutable(string file, PortableExecutable pex, bool includeDebug)
public string? CheckExecutable(string file, PortableExecutable exe, bool includeDebug)
{
// If there are exactly 2 resources with type 99
if (pex.FindResourceByNamedType("99, ").Count == 2)
if (exe.FindResourceByNamedType("99, ").Count == 2)
return "CExe";
if (pex.StubExecutableData != null)
if (exe.StubExecutableData != null)
{
var matchers = new List<ContentMatchSet>
{
@@ -33,7 +33,7 @@ namespace BinaryObjectScanner.Packer
}, "CExe")
};
var match = MatchUtil.GetFirstMatch(file, pex.StubExecutableData, matchers, includeDebug);
var match = MatchUtil.GetFirstMatch(file, exe.StubExecutableData, matchers, includeDebug);
if (!string.IsNullOrEmpty(match))
return match;
}

View File

@@ -9,11 +9,11 @@ namespace BinaryObjectScanner.Packer
public class Crunch : IExecutableCheck<PortableExecutable>
{
/// <inheritdoc/>
public string? CheckExecutable(string file, PortableExecutable pex, bool includeDebug)
public string? CheckExecutable(string file, PortableExecutable exe, bool includeDebug)
{
// Get the last section strings, if they exist
var sections = pex.Model.SectionTable ?? [];
var strs = pex.GetSectionStrings(sections.Length - 1);
var sections = exe.Model.SectionTable ?? [];
var strs = exe.GetSectionStrings(sections.Length - 1);
if (strs != null)
{
if (strs.Exists(s => s.Contains("BITARTS")))

Some files were not shown because too many files have changed in this diff Show More