Compare commits

..

110 Commits

Author SHA1 Message Date
Matt Nadareski
521797b7b1 Add readme to package finally 2026-07-09 09:37:59 -04:00
Matt Nadareski
f4987e1862 Bump version 2026-07-06 10:32:00 -04:00
Matt Nadareski
34a0fb1f87 Update Serialization to 3.0.1 2026-07-06 10:19:49 -04:00
HeroponRikiBestest
8ca25c6370 Update GCF output string for encrypted GCFs (#417)
* Update GCF output string for encrypted GCFs

* Use Array.Exists since some early GCFs have only some files encrypted
2026-06-26 20:45:18 -04:00
Matt Nadareski
c45f6a1bae Bump version 2026-06-19 11:39:18 -04:00
Matt Nadareski
94d271d167 Remove temporary extension 2026-06-17 22:48:55 -04:00
Matt Nadareski
656016830c Fix PSX JP anti-modchip string (UTF to Shift-JIS) 2026-06-15 14:20:34 -04:00
Matt Nadareski
5ba78908d7 Update packages 2026-06-12 11:00:13 -04:00
Matt Nadareski
52335e1720 Remove CONTRIBUTING due to org-level version 2026-05-16 15:03:29 -04:00
Matt Nadareski
78d5ff201b Update CONTRIBUTING to be more accurate 2026-05-15 13:04:33 -04:00
Matt Nadareski
0f63f798dc Split some contributing info into a README 2026-05-15 10:57:13 -04:00
Matt Nadareski
7bf12001ca Rename coding tuide to CONTRIBUTING 2026-05-15 10:54:59 -04:00
Matt Nadareski
c444d5445d Update gitignore for new VSCode feature 2026-05-15 10:39:33 -04:00
HeroponRikiBestest
759e4bead0 Update release control executable table (#414)
* Move dictionaries to constants file

* Fix paste

* Update RC table with newly found executables
2026-03-26 15:14:32 -04:00
Matt Nadareski
993b1818c3 Add removal note 2026-03-22 17:17:33 -04:00
Matt Nadareski
384db5dcf4 Bump version 2026-03-17 19:13:16 -04:00
Matt Nadareski
b96af0a3c2 Fix copy-paste issue with GCF test 2026-03-17 14:36:49 -04:00
Matt Nadareski
95f152c105 Add GCF tests 2026-03-17 14:30:34 -04:00
HeroponRikiBestest
ff02fdb5c3 Add BOS gcf output (#413) 2026-03-17 14:28:29 -04:00
Matt Nadareski
53d4757e5c Fix CEG test 2026-03-17 13:20:30 -04:00
Matt Nadareski
0181917850 Minor cleanup 2026-03-17 13:10:59 -04:00
HeroponRikiBestest
008d53ad8a Final Major CEG pass (#411)
* Reorganize Steam3 section in a more sensibible way, add/clean up comments.

* Finally

* Cleaned up a few things I missed, added some more comments.

* Reformat

* The future is now, old man.
Also added more comments, and removed a TODO that needed to be moved to a github question.

* Forgot to use the GUIDs for some reason

* One last TODO for something to think about in the future after this PR.

* The lack of spacing was bothering me, forgot it before.

* Updated table with more steam2 storages. Formatting changed slightly because I made a more advanced script that allows me to update the table more easily and reliably locally.

* fix spacing
2026-03-17 13:06:11 -04:00
Matt Nadareski
be5169b935 Update packages 2026-03-15 20:47:59 -04:00
HeroponRikiBestest
245e840063 Add iso-level ripguard detection. (#412) 2026-03-07 15:19:00 -05:00
HeroponRikiBestest
9be63e9e9a Change version output for protectdisc iso scan (#410)
Existing one was found to be inaccurate
2026-02-11 18:44:30 -05:00
HeroponRikiBestest
57797496cf Add steam3 samples to CEG (#409)
* forgot these 2 last time

* :(

* make todos more professional
2026-02-11 08:10:56 -05:00
HeroponRikiBestest
8490d3804f Add all my current steam2 ceg samples (#408)
* Add current steam2 entries

* Finish this round
2026-02-09 19:50:31 -05:00
HeroponRikiBestest
8df070ad3d Make CEG actually work (#407)
I wrote the original line wrong without realizing somehow.
2026-02-09 09:25:01 -05:00
HeroponRikiBestest
6cc6f66c95 Add CEG protection detection (#406)
* Initial work

* Finish PR

* Update test count
2026-02-07 18:07:36 -05:00
HeroponRikiBestest
fbee5a1c52 Add RC hash (#405)
Small update, found one more, needed to update the dictionary
2026-02-04 19:52:50 -05:00
Matt Nadareski
4807520169 This doesn't need private set 2026-01-30 22:32:44 -05:00
Matt Nadareski
91da3068b6 Clean up now-empty region 2026-01-30 22:31:25 -05:00
Matt Nadareski
c9316651c5 Use auto properties for static check lists 2026-01-30 22:30:59 -05:00
Matt Nadareski
2b3917a1ee These can't be null anymore 2026-01-30 22:15:34 -05:00
Matt Nadareski
efef8d494e More cleanup 2026-01-27 09:30:58 -05:00
Matt Nadareski
6c1efccb00 Fix incorrect formatting issue 2026-01-25 17:30:54 -05:00
Matt Nadareski
0d2f81773d Add editorconfig, fix issues 2026-01-25 17:27:42 -05:00
Morlit55
7058c7a150 More info on Dinamic Multimedia Protection (#404)
* More info on Dinamic Multimedia Protection

Added comments regarding related DRM and patents for Dinamic Multimedia Protection.

* Removed MPO references

MPO ring protection has since been proven to be unrelated.
2026-01-23 11:54:59 -05:00
HeroponRikiBestest
417c1f8208 Fix scanning for Solidshield 3.0.0.0 DLLs. (#403)
* Fix scanning for Solidshield 3.0.0.0 DLLs.

* Add curly braces for multiline if
2026-01-10 16:10:58 -05:00
HeroponRikiBestest
82fc850b57 minor starforce fix (#402)
* minor starforce fix

* combine regex checks
2025-12-29 22:58:12 -05:00
HeroponRikiBestest
973b0118b6 Fix minor nested json issue (#398) 2025-12-02 12:15:39 -05:00
HeroponRikiBestest
c2368661cb Fix oversight where Scanner.cs won't scan for files if an archive extracts to one or more directories (#397)
* Scanner.cs won't scan for files if an archive extracts to a directory

* use fsentries
2025-11-29 14:48:47 -05:00
Matt Nadareski
05bddd6005 Bump version 2025-11-25 08:40:36 -05:00
Matt Nadareski
777232301d Update Serialization to 2.2.1 2025-11-25 07:56:38 -05:00
Matt Nadareski
41a705c343 Add support for .NET 10 2025-11-24 11:57:17 -05:00
HeroponRikiBestest
805beb3418 Improve starforce keyless detection (#396) 2025-11-17 22:00:44 -05:00
HeroponRikiBestest
cc7592e07a consistent alpharom stylization (#395)
I forgot that Alpha-ROM is stylized with a dash. Mainly PRing so it'll also be consistent with how it already is on redump.
2025-11-17 12:29:26 -05:00
HeroponRikiBestest
41ad8adf6e Small TAGES and AlphaROM improvements (#394)
* Small improvement to early TAGES detection to eliminate small handful of false positives. Also threw in a note about alpharom

* Improve alpharom handling

* Initial round of fixes
2025-11-16 15:55:32 -05:00
HeroponRikiBestest
201badd434 Update RC dictionary name now that one of the entries is in redump (#393) 2025-11-14 07:28:46 -05:00
Matt Nadareski
f58003b3fc Ensure JSON added to help print 2025-11-13 13:59:25 -05:00
Matt Nadareski
ff8976a67a Restore warning not as error 2025-11-10 13:09:49 -05:00
Matt Nadareski
dc968c2d15 Bump version 2025-11-10 13:07:37 -05:00
Matt Nadareski
3726abb209 Cleanup 2025-11-10 12:57:08 -05:00
HeroponRikiBestest
ac8dfb833c Fixes last minute issue with json parsing (#392)
* fix

* add comment back

* slight simplification

* Remove newline

* Remove newline

* Fix
2025-11-10 12:45:56 -05:00
Matt Nadareski
f0673046dc Minor cleanup from last commit 2025-11-10 09:53:53 -05:00
Matt Nadareski
d9fa073c0f Minor cleanup from last commit 2025-11-10 09:53:25 -05:00
HeroponRikiBestest
95a20fb30d Add nested json output for protectionscan (#391)
* Attempt nested for real this time

* forgot to include handling the base path

* Reverted unnecesssary changes

* Remove unneeded net6.0 gating

* Add comments

* Finish comments

* Might as well safeguard if no protections are returned.

* Use object instead of dynamic

* Remove weird empty string root node handling

* remove uneeded ref

* Modify comment accordingly

* Merge regular and nested json writing

* Simplify object value checking

* change flag handling

Co-authored-by: Matt Nadareski <mnadareski@outlook.com>

* Initial fixes

* Invert if-else to de-nest main logic

* minor formatting fixes

* Improved Json output

* Remove unnecessary comments

* That's just a string

* Slight improvement

* Simplify casting

* attept further simplification

* Further

* Reduce nesting using inversion and continue

* Further simplified logic

* Replace my code with sabre's

* De-nest using continue

* newline

* Remove all instances where it can end in a directory seperator

---------

Co-authored-by: Matt Nadareski <mnadareski@outlook.com>
2025-11-10 09:48:22 -05:00
Matt Nadareski
dd1e49662f Cleanup 2025-11-07 22:14:28 -05:00
HeroponRikiBestest
78947616b1 Add json output for protectionscan (#390)
* actual first pr

* Initial fixes

* Second round of fixes

* Final fix
2025-11-07 22:07:08 -05:00
Matt Nadareski
ba56b9aff6 Add file-only flag for scans 2025-11-07 10:51:02 -05:00
Matt Nadareski
3b287c6f7b Mid 2025-11-07 09:46:34 -05:00
Matt Nadareski
dcdf0bcf40 Automatic cleanup 2025-11-07 08:24:22 -05:00
Matt Nadareski
d2eebd0f00 Cleanup 2025-11-07 07:40:33 -05:00
HeroponRikiBestest
a281e8325e Initial ISO Protection Detection (#389)
* Initial

* Laserlock in

* This is a better way to read the string

* That array copy wasn't needed either

* Use static filetype method, rename filetype.iso

* Initial Codelok ISO scanning

* Comments with redump IDs

* Add redump examples to laserlock

* Change for testing

* Small comment

* TAGES

* halfway through safedisc

* Safedisc done

* Fix 1

* Major oversights in puredata fixed

* Finish SecuROM

* ProtectDiSC done

* Alpharom done

* Finish StarForce, initial PR review ready

* Wait, that would be really bad

* One more for the road.

* Small finding

* Small fix for finding

* Notes on finding

* Several minor fixes, decisions

* what do you MEAN it returns true if there are no elements in the array

* Future todo

* Update packages

* Rebase

* Fix runisochecks

* First round of fixes

* Second round of fixes

* Tests attempt 1

* Make checks work

* Individual test attempt 1

* Final tests

---------

Co-authored-by: Matt Nadareski <mnadareski@outlook.com>
2025-11-07 07:22:28 -05:00
Matt Nadareski
9f5b292035 Fix MPQ note 2025-11-06 21:05:55 -05:00
Matt Nadareski
466689dcbc Clean up holdover logic 2025-11-06 13:43:49 -05:00
Matt Nadareski
5b0bf2e7e4 Update packages 2025-11-06 08:22:09 -05:00
Matt Nadareski
cc8dfb8478 Update rolling tag 2025-10-26 20:29:55 -04:00
Matt Nadareski
82412fce9a Add more ProtectCD/DVD checks (fixes #387) 2025-10-21 14:06:09 -04:00
HeroponRikiBestest
1a67decd7b Minor Release Control update (#386)
* Minor Release Control update

Added russian Gothic 4, updated international gothic 4 now that a redump entry exists, noted 2 other versions known to exist.

* Minor comment formatting
2025-10-16 19:58:48 -04:00
Matt Nadareski
f1afb6d60b Bump version 2025-10-07 16:00:04 -04:00
Matt Nadareski
5e812daf01 Fix debug flag use 2025-10-07 14:56:53 -04:00
Matt Nadareski
ab508eebe8 Use main feature pattern 2025-10-07 13:44:27 -04:00
Matt Nadareski
31792fab48 Update packages 2025-10-07 13:33:55 -04:00
Matt Nadareski
010f792b1a Add minor identifier for NSIS 2025-10-07 09:45:50 -04:00
Matt Nadareski
a3118cee68 Use CommandLine library for executable 2025-10-06 09:43:15 -04:00
Matt Nadareski
daa72eb970 Bump version 2025-10-05 17:32:27 -04:00
Matt Nadareski
a42328ef60 Update Serialization to 2.0.1 2025-10-05 17:26:01 -04:00
Matt Nadareski
7f2dd26d9b Require exact versions for build 2025-09-30 11:12:41 -04:00
Matt Nadareski
871ac97a3a Bump version 2025-09-29 14:18:10 -04:00
Matt Nadareski
5e11048e18 Remove compiler flags that weren't working 2025-09-29 12:44:52 -04:00
Matt Nadareski
19e696bf15 Use an assumption to help trim for now 2025-09-29 08:33:33 -04:00
Matt Nadareski
ddf8c393df Use AddD reader instead of manual 2025-09-29 08:29:30 -04:00
Matt Nadareski
d234549099 Use constant for AddD 2025-09-29 08:26:37 -04:00
Matt Nadareski
5899dd99f3 Reduce AddD search window 2025-09-29 08:24:08 -04:00
Matt Nadareski
f50f9f741d Update Serialization to 2.0.0 2025-09-29 08:01:50 -04:00
Matt Nadareski
09f5b28de7 More Clickteam notes 2025-09-27 21:34:11 -04:00
Matt Nadareski
f71a007b35 Add notes about Clickteam 2025-09-27 21:02:08 -04:00
Matt Nadareski
d6a89c8905 Partially revert and clarify 2025-09-26 21:45:01 -04:00
Matt Nadareski
1b4f363b08 Couple of PECompact things 2025-09-26 21:41:15 -04:00
Matt Nadareski
8abdaa4218 Add a couple more NSIS notes 2025-09-26 21:35:33 -04:00
Matt Nadareski
454bfa9f4f Check overlay for NSIS 2025-09-26 21:31:59 -04:00
Matt Nadareski
8534cda9c5 Add comment for NSIS 2025-09-26 21:28:37 -04:00
Matt Nadareski
b285127cee Intel Installation Framework is extractable 2025-09-26 21:24:47 -04:00
Matt Nadareski
8a6179ea11 Add newly found Shrinker section name 2025-09-26 20:59:19 -04:00
Matt Nadareski
d07e46c5f7 Add a Gentee note 2025-09-26 20:54:59 -04:00
Matt Nadareski
ee5ed5e833 Add some notes about EXECryptor 2025-09-26 20:51:29 -04:00
Matt Nadareski
7fcdfce152 Add notes about ApecSoft 2025-09-26 20:39:22 -04:00
Matt Nadareski
f1d7ee89cb Remove TODO 2025-09-26 20:05:58 -04:00
Matt Nadareski
1765e4da16 Clean up remarks, add SFX trailing name 2025-09-26 08:35:25 -04:00
Matt Nadareski
2a7455252e Add more Advanced Installer notes 2025-09-25 21:53:19 -04:00
Matt Nadareski
057ce3c4cc Add more Advanced Installer notes 2025-09-25 21:44:08 -04:00
Matt Nadareski
7e7d166ed8 Add note for Advanced Installer 2025-09-25 21:02:54 -04:00
Matt Nadareski
0872e0ff49 Bump version 2025-09-24 13:07:03 -04:00
Matt Nadareski
c0a590db63 Use package-provided IProgress to avoid conflict 2025-09-24 13:06:27 -04:00
Matt Nadareski
50b4eb99e3 Bump version 2025-09-24 12:38:01 -04:00
Matt Nadareski
08a90d52a8 Update packages 2025-09-24 12:14:31 -04:00
Matt Nadareski
d41cd63ad7 Use "proper" namespace since it's public 2025-09-22 21:05:39 -04:00
Matt Nadareski
c12d3fbe15 Progress doesn't need to be hindered 2025-09-22 21:04:17 -04:00
Matt Nadareski
4db1c57830 Internalize Func for .NET Framework 2.0 2025-09-22 21:01:23 -04:00
319 changed files with 12895 additions and 2379 deletions

167
.editorconfig Normal file
View 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

View File

@@ -1,40 +1,48 @@
name: Build and Test name: Build and Test
on: on:
push: push:
branches: [ "master" ] branches: ["master"]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
with: with:
submodules: recursive fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x
- name: Run tests
run: dotnet test
- name: Run publish script
run: ./publish-nix.sh -d
- name: Upload to rolling - name: Setup .NET
uses: ncipollo/release-action@v1.14.0 uses: actions/setup-dotnet@v5
with: with:
allowUpdates: True dotnet-version: |
artifacts: "*.nupkg,*.snupkg,*.zip" 8.0.x
body: 'Last built commit: ${{ github.sha }}' 9.0.x
name: 'Rolling Release' 10.0.x
prerelease: True
replacesArtifacts: True - name: Run tests
tag: "rolling" run: dotnet test
updateOnlyUnreleased: True
- name: Run publish script
run: ./publish-nix.sh -d
- name: Update rolling tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -f rolling
git push origin :refs/tags/rolling || true
git push origin rolling --force
- name: Upload to rolling
uses: ncipollo/release-action@v1.20.0
with:
allowUpdates: True
artifacts: "*.nupkg,*.snupkg,*.zip"
body: "Last built commit: ${{ github.sha }}"
name: "Rolling Release"
prerelease: True
replacesArtifacts: True
tag: "rolling"
updateOnlyUnreleased: True

View File

@@ -3,21 +3,21 @@ name: Build PR
on: [pull_request] on: [pull_request]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x
- name: Build
run: dotnet build
- name: Run tests - name: Setup .NET
run: dotnet test uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Build
run: dotnet build
- name: Run tests
run: dotnet test

1
.gitignore vendored
View File

@@ -4,6 +4,7 @@
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files # User-specific files
*.lscache
*.suo *.suo
*.user *.user
*.userosscache *.userosscache

2
.vscode/launch.json vendored
View File

@@ -10,7 +10,7 @@
"request": "launch", "request": "launch",
"preLaunchTask": "build", "preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path. // If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/ProtectionScan/bin/Debug/net9.0/ProtectionScan.dll", "program": "${workspaceFolder}/ProtectionScan/bin/Debug/net10.0/ProtectionScan.dll",
"args": [], "args": [],
"cwd": "${workspaceFolder}/ProtectionScan", "cwd": "${workspaceFolder}/ProtectionScan",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks> <TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<IsPackable>false</IsPackable> <IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
@@ -12,14 +12,14 @@
</ItemGroup> </ItemGroup>
<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> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
</PackageReference> </PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.6.0" />
<PackageReference Include="SabreTools.Serialization" Version="1.9.5" /> <PackageReference Include="SabreTools.Serialization" Version="[3.0.1]" />
<PackageReference Include="xunit" Version="2.9.3" /> <PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4"> <PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
</PackageReference> </PackageReference>

View File

@@ -42,4 +42,4 @@ namespace BinaryObjectScanner.Test.Data
#endregion #endregion
} }
} }

View File

@@ -44,7 +44,7 @@ namespace BinaryObjectScanner.Test.Data
public void PortableExecutableCheckClasses_Populated() public void PortableExecutableCheckClasses_Populated()
{ {
var actual = StaticChecks.PortableExecutableCheckClasses; var actual = StaticChecks.PortableExecutableCheckClasses;
Assert.Equal(105, actual.Length); Assert.Equal(106, actual.Length);
} }
} }
} }

View File

@@ -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
}
}

View File

@@ -6,8 +6,8 @@ namespace BinaryObjectScanner.Test.FileType
{ {
public class AACSMediaKeyBlockTests public class AACSMediaKeyBlockTests
{ {
private static readonly SabreTools.Serialization.Wrappers.AACSMediaKeyBlock wrapper private static readonly SabreTools.Wrappers.AACSMediaKeyBlock wrapper
= new(new SabreTools.Models.AACS.MediaKeyBlock(), new MemoryStream(new byte[1024])); = new(new SabreTools.Data.Models.AACS.MediaKeyBlock(), new MemoryStream(new byte[1024]));
[Fact] [Fact]
public void DetectFile_EmptyString_Null() public void DetectFile_EmptyString_Null()
@@ -31,4 +31,3 @@ namespace BinaryObjectScanner.Test.FileType
} }
} }
} }

View File

@@ -6,8 +6,8 @@ namespace BinaryObjectScanner.Test.FileType
{ {
public class BDPlusSVMTests public class BDPlusSVMTests
{ {
private static readonly SabreTools.Serialization.Wrappers.BDPlusSVM wrapper private static readonly SabreTools.Wrappers.BDPlusSVM wrapper
= new(new SabreTools.Models.BDPlus.SVM(), new MemoryStream(new byte[1024])); = new(new SabreTools.Data.Models.BDPlus.SVM(), new MemoryStream(new byte[1024]));
[Fact] [Fact]
public void DetectFile_EmptyString_Null() public void DetectFile_EmptyString_Null()
@@ -31,4 +31,3 @@ namespace BinaryObjectScanner.Test.FileType
} }
} }
} }

View File

@@ -0,0 +1,34 @@
using System.IO;
using BinaryObjectScanner.FileType;
using Xunit;
namespace BinaryObjectScanner.Test.FileType
{
public class DiskImageTests
{
private static readonly SabreTools.Wrappers.ISO9660 wrapper
= new(new SabreTools.Data.Models.ISO9660.Volume(), new MemoryStream(new byte[1024]));
[Fact]
public void DetectFile_EmptyString_Null()
{
string file = string.Empty;
var detectable = new ISO9660(wrapper);
string? actual = detectable.Detect(file, includeDebug: false);
Assert.Null(actual);
}
[Fact]
public void DetectStream_EmptyStream_Empty()
{
Stream? stream = new MemoryStream();
string file = string.Empty;
var detectable = new ISO9660(wrapper);
string? actual = detectable.Detect(stream, file, includeDebug: false);
Assert.NotNull(actual);
Assert.Empty(actual);
}
}
}

View 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);
}
}
}

View File

@@ -6,11 +6,14 @@ namespace BinaryObjectScanner.Test.FileType
{ {
public class LDSCRYPTTests public class LDSCRYPTTests
{ {
private static readonly SabreTools.Wrappers.LDSCRYPT wrapper
= new(new SabreTools.Data.Models.LDSCRYPT.EncryptedFile(), new MemoryStream(new byte[1024]));
[Fact] [Fact]
public void DetectFile_EmptyString_Null() public void DetectFile_EmptyString_Null()
{ {
string file = string.Empty; string file = string.Empty;
var detectable = new LDSCRYPT(); var detectable = new LDSCRYPT(wrapper);
string? actual = detectable.Detect(file, includeDebug: false); string? actual = detectable.Detect(file, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
@@ -21,11 +24,10 @@ namespace BinaryObjectScanner.Test.FileType
{ {
Stream? stream = new MemoryStream(); Stream? stream = new MemoryStream();
string file = string.Empty; string file = string.Empty;
var detectable = new LDSCRYPT(); var detectable = new LDSCRYPT(wrapper);
string? actual = detectable.Detect(stream, file, includeDebug: false); string? actual = detectable.Detect(stream, file, includeDebug: false);
Assert.Null(actual); Assert.Equal("LDSCRYPT", actual);
} }
} }
} }

View File

@@ -6,8 +6,8 @@ namespace BinaryObjectScanner.Test.FileType
{ {
public class LinearExecutableTests public class LinearExecutableTests
{ {
private static readonly SabreTools.Serialization.Wrappers.LinearExecutable wrapper private static readonly SabreTools.Wrappers.LinearExecutable wrapper
= new(new SabreTools.Models.LinearExecutable.Executable(), new MemoryStream(new byte[1024])); = new(new SabreTools.Data.Models.LinearExecutable.Executable(), new MemoryStream(new byte[1024]));
[Fact] [Fact]
public void DetectFile_EmptyString_Null() public void DetectFile_EmptyString_Null()

View File

@@ -6,8 +6,8 @@ namespace BinaryObjectScanner.Test.FileType
{ {
public class MSDOSTests public class MSDOSTests
{ {
private static readonly SabreTools.Serialization.Wrappers.MSDOS wrapper private static readonly SabreTools.Wrappers.MSDOS wrapper
= new(new SabreTools.Models.MSDOS.Executable(), new MemoryStream(new byte[1024])); = new(new SabreTools.Data.Models.MSDOS.Executable(), new MemoryStream(new byte[1024]));
[Fact] [Fact]
public void DetectFile_EmptyString_Null() public void DetectFile_EmptyString_Null()

View File

@@ -6,8 +6,8 @@ namespace BinaryObjectScanner.Test.FileType
{ {
public class NewExecutableTests public class NewExecutableTests
{ {
private static readonly SabreTools.Serialization.Wrappers.NewExecutable wrapper private static readonly SabreTools.Wrappers.NewExecutable wrapper
= new(new SabreTools.Models.NewExecutable.Executable(), new MemoryStream(new byte[1024])); = new(new SabreTools.Data.Models.NewExecutable.Executable(), new MemoryStream(new byte[1024]));
[Fact] [Fact]
public void DetectFile_EmptyString_Null() public void DetectFile_EmptyString_Null()

View File

@@ -6,8 +6,8 @@ namespace BinaryObjectScanner.Test.FileType
{ {
public class PLJTests public class PLJTests
{ {
private static readonly SabreTools.Serialization.Wrappers.PlayJAudioFile wrapper private static readonly SabreTools.Wrappers.PlayJAudioFile wrapper
= new(new SabreTools.Models.PlayJ.AudioFile(), new MemoryStream(new byte[1024])); = new(new SabreTools.Data.Models.PlayJ.AudioFile(), new MemoryStream(new byte[1024]));
[Fact] [Fact]
public void DetectFile_EmptyString_Null() public void DetectFile_EmptyString_Null()
@@ -31,4 +31,3 @@ namespace BinaryObjectScanner.Test.FileType
} }
} }
} }

View File

@@ -6,8 +6,8 @@ namespace BinaryObjectScanner.Test.FileType
{ {
public class PortableExecutableTests public class PortableExecutableTests
{ {
private static readonly SabreTools.Serialization.Wrappers.PortableExecutable wrapper private static readonly SabreTools.Wrappers.PortableExecutable wrapper
= new(new SabreTools.Models.PortableExecutable.Executable(), new MemoryStream(new byte[1024])); = new(new SabreTools.Data.Models.PortableExecutable.Executable(), new MemoryStream(new byte[1024]));
[Fact] [Fact]
public void DetectFile_EmptyString_Null() public void DetectFile_EmptyString_Null()

View File

@@ -6,11 +6,14 @@ namespace BinaryObjectScanner.Test.FileType
{ {
public class RealArcadeInstallerTests public class RealArcadeInstallerTests
{ {
private static readonly SabreTools.Wrappers.RealArcadeInstaller wrapper
= new(new SabreTools.Data.Models.RealArcade.RgsFile(), new MemoryStream(new byte[1024]));
[Fact] [Fact]
public void DetectFile_EmptyString_Null() public void DetectFile_EmptyString_Null()
{ {
string file = string.Empty; string file = string.Empty;
var detectable = new RealArcadeInstaller(); var detectable = new RealArcadeInstaller(wrapper);
string? actual = detectable.Detect(file, includeDebug: false); string? actual = detectable.Detect(file, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
@@ -21,11 +24,10 @@ namespace BinaryObjectScanner.Test.FileType
{ {
Stream? stream = new MemoryStream(); Stream? stream = new MemoryStream();
string file = string.Empty; string file = string.Empty;
var detectable = new RealArcadeInstaller(); var detectable = new RealArcadeInstaller(wrapper);
string? actual = detectable.Detect(stream, file, includeDebug: false); string? actual = detectable.Detect(stream, file, includeDebug: false);
Assert.Null(actual); Assert.Equal("RealArcade Installer", actual);
} }
} }
} }

View File

@@ -6,11 +6,14 @@ namespace BinaryObjectScanner.Test.FileType
{ {
public class RealArcadeMezzanineTests public class RealArcadeMezzanineTests
{ {
private static readonly SabreTools.Wrappers.RealArcadeMezzanine wrapper
= new(new SabreTools.Data.Models.RealArcade.Mezzanine(), new MemoryStream(new byte[1024]));
[Fact] [Fact]
public void DetectFile_EmptyString_Null() public void DetectFile_EmptyString_Null()
{ {
string file = string.Empty; string file = string.Empty;
var detectable = new RealArcadeMezzanine(); var detectable = new RealArcadeMezzanine(wrapper);
string? actual = detectable.Detect(file, includeDebug: false); string? actual = detectable.Detect(file, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
@@ -21,11 +24,10 @@ namespace BinaryObjectScanner.Test.FileType
{ {
Stream? stream = new MemoryStream(); Stream? stream = new MemoryStream();
string file = string.Empty; string file = string.Empty;
var detectable = new RealArcadeMezzanine(); var detectable = new RealArcadeMezzanine(wrapper);
string? actual = detectable.Detect(stream, file, includeDebug: false); string? actual = detectable.Detect(stream, file, includeDebug: false);
Assert.Null(actual); Assert.Equal("RealArcade Mezzanine", actual);
} }
} }
} }

View File

@@ -6,11 +6,14 @@ namespace BinaryObjectScanner.Test.FileType
{ {
public class SFFSTests public class SFFSTests
{ {
private static readonly SabreTools.Wrappers.SFFS wrapper
= new(new SabreTools.Data.Models.StarForce.FileSystem(), new MemoryStream(new byte[1024]));
[Fact] [Fact]
public void DetectFile_EmptyString_Null() public void DetectFile_EmptyString_Null()
{ {
string file = string.Empty; string file = string.Empty;
var detectable = new SFFS(); var detectable = new SFFS(wrapper);
string? actual = detectable.Detect(file, includeDebug: false); string? actual = detectable.Detect(file, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
@@ -21,10 +24,10 @@ namespace BinaryObjectScanner.Test.FileType
{ {
Stream? stream = new MemoryStream(); Stream? stream = new MemoryStream();
string file = string.Empty; string file = string.Empty;
var detectable = new SFFS(); var detectable = new SFFS(wrapper);
string? actual = detectable.Detect(stream, file, includeDebug: false); string? actual = detectable.Detect(stream, file, includeDebug: false);
Assert.Null(actual); Assert.Equal("StarForce Filesystem Container", actual);
} }
} }
} }

View File

@@ -28,4 +28,3 @@ namespace BinaryObjectScanner.Test.FileType
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.GameEngine
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new RenderWare();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new ASPack();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new AdvancedInstaller();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new AutoPlayMediaStudio();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new CExe();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new Crunch();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new DotFuscator();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new DotNetReactor();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -21,13 +21,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new EXEStealth();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new EmbeddedFile();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new GenteeInstaller();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new HyperTechCrackProof();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,9 +10,9 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckNewExecutableTest() public void CheckNewExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.NewExecutable.Executable model = new(); SabreTools.Data.Models.NewExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new InnoSetup();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -23,13 +23,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new InnoSetup();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new InstallAnywhere();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new InstallerVISE();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new IntelInstallationFramework();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new MicrosoftCABSFX();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new NSIS();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new NeoLite();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new PECompact();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new PEtite();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new SetupFactory();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new SevenZipSFX();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new Shrinker();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new UPX();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new WinRARSFX();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,26 +10,26 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckNewExecutableTest() public void CheckNewExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.NewExecutable.Executable model = new(); SabreTools.Data.Models.NewExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new WinZipSFX();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
[Fact] [Fact]
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new WinZipSFX();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,26 +10,26 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckNewExecutableTest() public void CheckNewExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.NewExecutable.Executable model = new(); SabreTools.Data.Models.NewExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new WiseInstaller();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
[Fact] [Fact]
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new WiseInstaller();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -21,13 +21,13 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new ActiveMARK();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new AegiSoft();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,26 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new AlphaROM();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
[Fact]
public void CheckDiskImageTest()
{
string file = "filename";
SabreTools.Data.Models.ISO9660.Volume model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Wrappers.ISO9660 iso = new(model, source);
var checker = new AlphaROM();
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
Assert.Null(actual);
}
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new Armadillo();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new ByteShield();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new CDCheck();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,28 +11,28 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckNewExecutableTest() public void CheckNewExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.NewExecutable.Executable model = new(); SabreTools.Data.Models.NewExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new CDDVDCops();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
[Fact] [Fact]
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new CDDVDCops();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
[Fact] [Fact]
public void CheckDirectoryPathTest() public void CheckDirectoryPathTest()
{ {
@@ -54,4 +54,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new CDGuard();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new CDKey();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new CDLock();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new CDSHiELDSE();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View 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);
}
}
}

View File

@@ -16,4 +16,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new CenegaProtectDVD();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new Channelware();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new ChosenBytesCodeLock();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new CopyKiller();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,26 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new CopyLok();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
[Fact]
public void CheckDiskImageTest()
{
string file = "filename";
SabreTools.Data.Models.ISO9660.Volume model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Wrappers.ISO9660 iso = new(model, source);
var checker = new CopyLok();
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
Assert.Null(actual);
}
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new CopyX();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new CrypKey();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new Cucko();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new Denuvo();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new DigiGuard();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new DiscGuard();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new EAAntiCheat();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new EasyAntiCheat();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new ElectronicArts();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new Engine32();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new GFWL();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new Gefest();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new HexalockAutoLock();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new ImpulseReactor();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new Intenium();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new InterLok();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new JoWood();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new KalypsoLauncher();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -16,4 +16,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new LabelGate();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

View File

@@ -11,9 +11,9 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new LaserLok();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
@@ -40,5 +40,18 @@ namespace BinaryObjectScanner.Test.Protection
string? actual = checker.CheckFilePath(path); string? actual = checker.CheckFilePath(path);
Assert.Null(actual); Assert.Null(actual);
} }
[Fact]
public void CheckDiskImageTest()
{
string file = "filename";
SabreTools.Data.Models.ISO9660.Volume model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Wrappers.ISO9660 iso = new(model, source);
var checker = new LaserLok();
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
Assert.Null(actual);
}
} }
} }

View File

@@ -10,13 +10,13 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest() public void CheckPortableExecutableTest()
{ {
string file = "filename"; string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new(); SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]); 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(); var checker = new MGIRegistration();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false); string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual); Assert.Null(actual);
} }
} }
} }

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