mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-09 18:36:43 +00:00
Compare commits
38 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c45f6a1bae | ||
|
|
94d271d167 | ||
|
|
656016830c | ||
|
|
5ba78908d7 | ||
|
|
52335e1720 | ||
|
|
78d5ff201b | ||
|
|
0f63f798dc | ||
|
|
7bf12001ca | ||
|
|
c444d5445d | ||
|
|
759e4bead0 | ||
|
|
993b1818c3 | ||
|
|
384db5dcf4 | ||
|
|
b96af0a3c2 | ||
|
|
95f152c105 | ||
|
|
ff02fdb5c3 | ||
|
|
53d4757e5c | ||
|
|
0181917850 | ||
|
|
008d53ad8a | ||
|
|
be5169b935 | ||
|
|
245e840063 | ||
|
|
9be63e9e9a | ||
|
|
57797496cf | ||
|
|
8490d3804f | ||
|
|
8df070ad3d | ||
|
|
6cc6f66c95 | ||
|
|
fbee5a1c52 | ||
|
|
4807520169 | ||
|
|
91da3068b6 | ||
|
|
c9316651c5 | ||
|
|
2b3917a1ee | ||
|
|
efef8d494e | ||
|
|
6c1efccb00 | ||
|
|
0d2f81773d | ||
|
|
7058c7a150 | ||
|
|
417c1f8208 | ||
|
|
82fc850b57 | ||
|
|
973b0118b6 | ||
|
|
c2368661cb |
167
.editorconfig
Normal file
167
.editorconfig
Normal file
@@ -0,0 +1,167 @@
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# C# files
|
||||
[*.cs]
|
||||
|
||||
# Indentation and spacing
|
||||
charset = utf-8
|
||||
indent_size = 4
|
||||
indent_style = space
|
||||
tab_width = 4
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
# New line preferences
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
max_line_length = unset
|
||||
|
||||
# using directive preferences
|
||||
csharp_using_directive_placement = outside_namespace
|
||||
dotnet_diagnostic.IDE0005.severity = error
|
||||
|
||||
# Code-block preferences
|
||||
csharp_style_namespace_declarations = block_scoped
|
||||
csharp_style_prefer_method_group_conversion = true
|
||||
csharp_style_prefer_top_level_statements = false
|
||||
|
||||
# Expression-level preferences
|
||||
csharp_prefer_simple_default_expression = true
|
||||
csharp_style_inlined_variable_declaration = true
|
||||
csharp_style_unused_value_assignment_preference = discard_variable
|
||||
csharp_style_unused_value_expression_statement_preference = discard_variable
|
||||
dotnet_diagnostic.IDE0001.severity = warning
|
||||
dotnet_diagnostic.IDE0002.severity = warning
|
||||
dotnet_diagnostic.IDE0004.severity = warning
|
||||
dotnet_diagnostic.IDE0010.severity = error
|
||||
dotnet_diagnostic.IDE0051.severity = warning
|
||||
dotnet_diagnostic.IDE0052.severity = warning
|
||||
dotnet_diagnostic.IDE0072.severity = warning
|
||||
dotnet_diagnostic.IDE0080.severity = warning
|
||||
dotnet_diagnostic.IDE0100.severity = error
|
||||
dotnet_diagnostic.IDE0110.severity = error
|
||||
dotnet_diagnostic.IDE0120.severity = warning
|
||||
dotnet_diagnostic.IDE0121.severity = warning
|
||||
dotnet_diagnostic.IDE0240.severity = error
|
||||
dotnet_diagnostic.IDE0241.severity = error
|
||||
dotnet_style_coalesce_expression = true
|
||||
dotnet_style_namespace_match_folder = false
|
||||
dotnet_style_null_propagation = true
|
||||
dotnet_style_prefer_auto_properties = true
|
||||
dotnet_style_prefer_collection_expression = when_types_loosely_match
|
||||
dotnet_style_prefer_is_null_check_over_reference_equality_method = true
|
||||
dotnet_style_prefer_compound_assignment = true
|
||||
csharp_style_prefer_simple_property_accessors = true
|
||||
dotnet_style_prefer_simplified_interpolation = true
|
||||
dotnet_style_prefer_simplified_boolean_expressions = true
|
||||
csharp_style_prefer_unbound_generic_type_in_nameof = true
|
||||
|
||||
# Field preferences
|
||||
dotnet_diagnostic.IDE0044.severity = warning
|
||||
dotnet_style_readonly_field = true
|
||||
|
||||
# Language keyword vs. framework types preferences
|
||||
dotnet_diagnostic.IDE0049.severity = error
|
||||
dotnet_style_predefined_type_for_locals_parameters_members = true
|
||||
dotnet_style_predefined_type_for_member_access = true
|
||||
|
||||
# Modifier preferences
|
||||
csharp_prefer_static_local_function = true
|
||||
csharp_style_prefer_readonly_struct = true
|
||||
dotnet_diagnostic.IDE0036.severity = warning
|
||||
dotnet_diagnostic.IDE0040.severity = error
|
||||
dotnet_diagnostic.IDE0380.severity = error
|
||||
dotnet_style_require_accessibility_modifiers = always
|
||||
|
||||
# New-line preferences
|
||||
dotnet_diagnostic.IDE2000.severity = warning
|
||||
dotnet_diagnostic.IDE2002.severity = warning
|
||||
dotnet_diagnostic.IDE2003.severity = warning
|
||||
dotnet_diagnostic.IDE2004.severity = warning
|
||||
dotnet_diagnostic.IDE2005.severity = warning
|
||||
dotnet_diagnostic.IDE2006.severity = warning
|
||||
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false
|
||||
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = false
|
||||
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = false
|
||||
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false
|
||||
dotnet_style_allow_multiple_blank_lines_experimental = false
|
||||
dotnet_style_allow_statement_immediately_after_block_experimental = false
|
||||
|
||||
# Null-checking preferences
|
||||
csharp_style_conditional_delegate_call = true
|
||||
|
||||
# Parameter preferences
|
||||
dotnet_code_quality_unused_parameters = all
|
||||
dotnet_diagnostic.IDE0280.severity = error
|
||||
|
||||
# Parentheses preferences
|
||||
dotnet_diagnostic.IDE0047.severity = warning
|
||||
dotnet_diagnostic.IDE0048.severity = warning
|
||||
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity
|
||||
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity
|
||||
dotnet_style_parentheses_in_other_operators = always_for_clarity
|
||||
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity
|
||||
|
||||
# Pattern-matching preferences
|
||||
dotnet_diagnostic.IDE0019.severity = warning
|
||||
dotnet_diagnostic.IDE0020.severity = warning
|
||||
dotnet_diagnostic.IDE0038.severity = warning
|
||||
dotnet_diagnostic.IDE0066.severity = none
|
||||
dotnet_diagnostic.IDE0083.severity = warning
|
||||
dotnet_diagnostic.IDE0260.severity = warning
|
||||
csharp_style_pattern_matching_over_as_with_null_check = true
|
||||
csharp_style_pattern_matching_over_is_with_cast_check = true
|
||||
csharp_style_prefer_not_pattern = true
|
||||
csharp_style_prefer_pattern_matching = true
|
||||
|
||||
# this. and Me. preferences
|
||||
dotnet_style_qualification_for_event = false
|
||||
dotnet_style_qualification_for_field = false
|
||||
dotnet_style_qualification_for_method = false
|
||||
dotnet_style_qualification_for_property = false
|
||||
|
||||
# var preferences
|
||||
csharp_style_var_for_built_in_types = false
|
||||
csharp_style_var_when_type_is_apparent = true
|
||||
|
||||
# .NET formatting options
|
||||
dotnet_separate_import_directive_groups = false
|
||||
dotnet_sort_system_directives_first = true
|
||||
|
||||
# C# formatting options
|
||||
csharp_indent_block_contents = true
|
||||
csharp_indent_braces = false
|
||||
csharp_indent_case_contents = true
|
||||
csharp_indent_case_contents_when_block = false
|
||||
csharp_indent_labels = one_less_than_current
|
||||
csharp_indent_switch_labels = true
|
||||
csharp_new_line_before_catch = true
|
||||
csharp_new_line_before_else = true
|
||||
csharp_new_line_before_finally = true
|
||||
csharp_new_line_before_members_in_anonymous_types = true
|
||||
csharp_new_line_before_members_in_object_initializers = true
|
||||
csharp_new_line_before_open_brace = all
|
||||
csharp_new_line_between_query_expression_clauses = true
|
||||
csharp_preserve_single_line_blocks = true
|
||||
csharp_preserve_single_line_statements = true
|
||||
csharp_space_after_cast = false
|
||||
csharp_space_after_colon_in_inheritance_clause = true
|
||||
csharp_space_after_comma = true
|
||||
csharp_space_after_dot = false
|
||||
csharp_space_after_keywords_in_control_flow_statements = true
|
||||
csharp_space_after_semicolon_in_for_statement = true
|
||||
csharp_space_around_binary_operators = before_and_after
|
||||
csharp_space_around_declaration_statements = false
|
||||
csharp_space_before_colon_in_inheritance_clause = true
|
||||
csharp_space_before_comma = false
|
||||
csharp_space_before_dot = false
|
||||
csharp_space_before_open_square_brackets = false
|
||||
csharp_space_before_semicolon_in_for_statement = false
|
||||
csharp_space_between_empty_square_brackets = false
|
||||
csharp_space_between_method_call_empty_parameter_list_parentheses = false
|
||||
csharp_space_between_method_call_name_and_opening_parenthesis = false
|
||||
csharp_space_between_method_call_parameter_list_parentheses = false
|
||||
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
|
||||
csharp_space_between_method_declaration_parameter_list_parentheses = false
|
||||
csharp_space_between_parentheses = false
|
||||
csharp_space_between_square_brackets = false
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,6 +4,7 @@
|
||||
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
||||
|
||||
# User-specific files
|
||||
*.lscache
|
||||
*.suo
|
||||
*.user
|
||||
*.userosscache
|
||||
|
||||
@@ -12,12 +12,12 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="coverlet.collector" Version="6.0.4">
|
||||
<PackageReference Include="coverlet.collector" Version="10.0.1">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
|
||||
<PackageReference Include="SabreTools.Serialization" Version="[2.2.1]" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.6.0" />
|
||||
<PackageReference Include="SabreTools.Serialization" Version="[3.0.0]" />
|
||||
<PackageReference Include="xunit" Version="2.9.3" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace BinaryObjectScanner.Test.Data
|
||||
public void PortableExecutableCheckClasses_Populated()
|
||||
{
|
||||
var actual = StaticChecks.PortableExecutableCheckClasses;
|
||||
Assert.Equal(105, actual.Length);
|
||||
Assert.Equal(106, actual.Length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test
|
||||
{
|
||||
public class ExtensionsTests
|
||||
{
|
||||
#region FileSize
|
||||
|
||||
[Fact]
|
||||
public void FileSize_Null_Invalid()
|
||||
{
|
||||
string? filename = null;
|
||||
long actual = filename.FileSize();
|
||||
Assert.Equal(-1, actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void FileSize_Empty_Invalid()
|
||||
{
|
||||
string? filename = string.Empty;
|
||||
long actual = filename.FileSize();
|
||||
Assert.Equal(-1, actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void FileSize_Invalid_Invalid()
|
||||
{
|
||||
string? filename = "INVALID";
|
||||
long actual = filename.FileSize();
|
||||
Assert.Equal(-1, actual);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ namespace BinaryObjectScanner.Test.FileType
|
||||
{
|
||||
public class AACSMediaKeyBlockTests
|
||||
{
|
||||
private static readonly SabreTools.Serialization.Wrappers.AACSMediaKeyBlock wrapper
|
||||
private static readonly SabreTools.Wrappers.AACSMediaKeyBlock wrapper
|
||||
= new(new SabreTools.Data.Models.AACS.MediaKeyBlock(), new MemoryStream(new byte[1024]));
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace BinaryObjectScanner.Test.FileType
|
||||
{
|
||||
public class BDPlusSVMTests
|
||||
{
|
||||
private static readonly SabreTools.Serialization.Wrappers.BDPlusSVM wrapper
|
||||
private static readonly SabreTools.Wrappers.BDPlusSVM wrapper
|
||||
= new(new SabreTools.Data.Models.BDPlus.SVM(), new MemoryStream(new byte[1024]));
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace BinaryObjectScanner.Test.FileType
|
||||
{
|
||||
public class DiskImageTests
|
||||
{
|
||||
private static readonly SabreTools.Serialization.Wrappers.ISO9660 wrapper
|
||||
private static readonly SabreTools.Wrappers.ISO9660 wrapper
|
||||
= new(new SabreTools.Data.Models.ISO9660.Volume(), new MemoryStream(new byte[1024]));
|
||||
|
||||
[Fact]
|
||||
|
||||
33
BinaryObjectScanner.Test/FileType/GCFTests.cs
Normal file
33
BinaryObjectScanner.Test/FileType/GCFTests.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.FileType;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.FileType
|
||||
{
|
||||
public class GCFTests
|
||||
{
|
||||
private static readonly SabreTools.Wrappers.GCF wrapper
|
||||
= new(new SabreTools.Data.Models.GCF.File(), new MemoryStream(new byte[1024]));
|
||||
|
||||
[Fact]
|
||||
public void DetectFile_EmptyString_Null()
|
||||
{
|
||||
string file = string.Empty;
|
||||
var detectable = new GCF(wrapper);
|
||||
|
||||
string? actual = detectable.Detect(file, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void DetectStream_EmptyStream_DefaultValue()
|
||||
{
|
||||
Stream? stream = new MemoryStream();
|
||||
string file = string.Empty;
|
||||
var detectable = new GCF(wrapper);
|
||||
|
||||
string? actual = detectable.Detect(stream, file, includeDebug: false);
|
||||
Assert.Equal(" - 0 (v0)", actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ namespace BinaryObjectScanner.Test.FileType
|
||||
{
|
||||
public class LDSCRYPTTests
|
||||
{
|
||||
private static readonly SabreTools.Serialization.Wrappers.LDSCRYPT wrapper
|
||||
private static readonly SabreTools.Wrappers.LDSCRYPT wrapper
|
||||
= new(new SabreTools.Data.Models.LDSCRYPT.EncryptedFile(), new MemoryStream(new byte[1024]));
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace BinaryObjectScanner.Test.FileType
|
||||
{
|
||||
public class LinearExecutableTests
|
||||
{
|
||||
private static readonly SabreTools.Serialization.Wrappers.LinearExecutable wrapper
|
||||
private static readonly SabreTools.Wrappers.LinearExecutable wrapper
|
||||
= new(new SabreTools.Data.Models.LinearExecutable.Executable(), new MemoryStream(new byte[1024]));
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace BinaryObjectScanner.Test.FileType
|
||||
{
|
||||
public class MSDOSTests
|
||||
{
|
||||
private static readonly SabreTools.Serialization.Wrappers.MSDOS wrapper
|
||||
private static readonly SabreTools.Wrappers.MSDOS wrapper
|
||||
= new(new SabreTools.Data.Models.MSDOS.Executable(), new MemoryStream(new byte[1024]));
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace BinaryObjectScanner.Test.FileType
|
||||
{
|
||||
public class NewExecutableTests
|
||||
{
|
||||
private static readonly SabreTools.Serialization.Wrappers.NewExecutable wrapper
|
||||
private static readonly SabreTools.Wrappers.NewExecutable wrapper
|
||||
= new(new SabreTools.Data.Models.NewExecutable.Executable(), new MemoryStream(new byte[1024]));
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace BinaryObjectScanner.Test.FileType
|
||||
{
|
||||
public class PLJTests
|
||||
{
|
||||
private static readonly SabreTools.Serialization.Wrappers.PlayJAudioFile wrapper
|
||||
private static readonly SabreTools.Wrappers.PlayJAudioFile wrapper
|
||||
= new(new SabreTools.Data.Models.PlayJ.AudioFile(), new MemoryStream(new byte[1024]));
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace BinaryObjectScanner.Test.FileType
|
||||
{
|
||||
public class PortableExecutableTests
|
||||
{
|
||||
private static readonly SabreTools.Serialization.Wrappers.PortableExecutable wrapper
|
||||
private static readonly SabreTools.Wrappers.PortableExecutable wrapper
|
||||
= new(new SabreTools.Data.Models.PortableExecutable.Executable(), new MemoryStream(new byte[1024]));
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace BinaryObjectScanner.Test.FileType
|
||||
{
|
||||
public class RealArcadeInstallerTests
|
||||
{
|
||||
private static readonly SabreTools.Serialization.Wrappers.RealArcadeInstaller wrapper
|
||||
private static readonly SabreTools.Wrappers.RealArcadeInstaller wrapper
|
||||
= new(new SabreTools.Data.Models.RealArcade.RgsFile(), new MemoryStream(new byte[1024]));
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace BinaryObjectScanner.Test.FileType
|
||||
{
|
||||
public class RealArcadeMezzanineTests
|
||||
{
|
||||
private static readonly SabreTools.Serialization.Wrappers.RealArcadeMezzanine wrapper
|
||||
private static readonly SabreTools.Wrappers.RealArcadeMezzanine wrapper
|
||||
= new(new SabreTools.Data.Models.RealArcade.Mezzanine(), new MemoryStream(new byte[1024]));
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace BinaryObjectScanner.Test.FileType
|
||||
{
|
||||
public class SFFSTests
|
||||
{
|
||||
private static readonly SabreTools.Serialization.Wrappers.SFFS wrapper
|
||||
private static readonly SabreTools.Wrappers.SFFS wrapper
|
||||
= new(new SabreTools.Data.Models.StarForce.FileSystem(), new MemoryStream(new byte[1024]));
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.GameEngine
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new RenderWare();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new ASPack();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new AdvancedInstaller();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new AutoPlayMediaStudio();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new CExe();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new Crunch();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new DotFuscator();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new DotNetReactor();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new EXEStealth();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new EmbeddedFile();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new GenteeInstaller();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new HyperTechCrackProof();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.NewExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.NewExecutable exe = new(model, source);
|
||||
|
||||
var checker = new InnoSetup();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
@@ -25,7 +25,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new InnoSetup();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new InstallAnywhere();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new InstallerVISE();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new IntelInstallationFramework();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new MicrosoftCABSFX();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new NSIS();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new NeoLite();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new PECompact();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new PEtite();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new SetupFactory();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new SevenZipSFX();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new Shrinker();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new UPX();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new WinRARSFX();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.NewExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.NewExecutable exe = new(model, source);
|
||||
|
||||
var checker = new WinZipSFX();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
@@ -25,7 +25,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new WinZipSFX();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.NewExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.NewExecutable exe = new(model, source);
|
||||
|
||||
var checker = new WiseInstaller();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
@@ -25,7 +25,7 @@ namespace BinaryObjectScanner.Test.Packer
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new WiseInstaller();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new ActiveMARK();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new AegiSoft();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new AlphaROM();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
@@ -25,7 +25,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.ISO9660.Volume model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.ISO9660 iso = new(model, source);
|
||||
SabreTools.Wrappers.ISO9660 iso = new(model, source);
|
||||
|
||||
var checker = new AlphaROM();
|
||||
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new Armadillo();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new ByteShield();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new CDCheck();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.NewExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.NewExecutable exe = new(model, source);
|
||||
|
||||
var checker = new CDDVDCops();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
@@ -26,7 +26,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new CDDVDCops();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new CDGuard();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new CDKey();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new CDLock();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new CDSHiELDSE();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
22
BinaryObjectScanner.Test/Protection/CEGTests.cs
Normal file
22
BinaryObjectScanner.Test/Protection/CEGTests.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CEGTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new CEG();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new CenegaProtectDVD();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new Channelware();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new ChosenBytesCodeLock();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new CopyKiller();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new CopyLok();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
@@ -25,7 +25,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.ISO9660.Volume model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.ISO9660 iso = new(model, source);
|
||||
SabreTools.Wrappers.ISO9660 iso = new(model, source);
|
||||
|
||||
var checker = new CopyLok();
|
||||
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new CopyX();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new CrypKey();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new Cucko();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new Denuvo();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new DigiGuard();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new DiscGuard();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new EAAntiCheat();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new EasyAntiCheat();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new ElectronicArts();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new Engine32();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new GFWL();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new Gefest();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new HexalockAutoLock();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new ImpulseReactor();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new Intenium();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new InterLok();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new JoWood();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new KalypsoLauncher();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new LabelGate();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new LaserLok();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
@@ -47,7 +47,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.ISO9660.Volume model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.ISO9660 iso = new(model, source);
|
||||
SabreTools.Wrappers.ISO9660 iso = new(model, source);
|
||||
|
||||
var checker = new LaserLok();
|
||||
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new MGIRegistration();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.NewExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.NewExecutable exe = new(model, source);
|
||||
|
||||
var checker = new Macrovision();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
@@ -26,7 +26,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new Macrovision();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
@@ -60,7 +60,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.ISO9660.Volume model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.ISO9660 iso = new(model, source);
|
||||
SabreTools.Wrappers.ISO9660 iso = new(model, source);
|
||||
|
||||
var checker = new Macrovision();
|
||||
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new MediaCloQ();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new MediaMax();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new NEACProtect();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new NProtect();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new OnlineRegistration();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new OpenMG();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new Origin();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new PlayJ();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new ProtectDISC();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
@@ -47,7 +47,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.ISO9660.Volume model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.ISO9660 iso = new(model, source);
|
||||
SabreTools.Wrappers.ISO9660 iso = new(model, source);
|
||||
|
||||
var checker = new ProtectDISC();
|
||||
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.NewExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.NewExecutable exe = new(model, source);
|
||||
|
||||
var checker = new RainbowSentinel();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
@@ -26,7 +26,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new RainbowSentinel();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new RealArcade();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new Roxxe();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new SVKProtector();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new SecuROM();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
@@ -47,7 +47,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.ISO9660.Volume model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.ISO9660 iso = new(model, source);
|
||||
SabreTools.Wrappers.ISO9660 iso = new(model, source);
|
||||
|
||||
var checker = new SecuROM();
|
||||
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Test.Protection
|
||||
string file = "filename";
|
||||
SabreTools.Data.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream(new byte[1024]);
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
|
||||
SabreTools.Wrappers.PortableExecutable exe = new(model, source);
|
||||
|
||||
var checker = new SmartE();
|
||||
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user